diff options
Diffstat (limited to 'include/mbgl/style/source.hpp')
-rw-r--r-- | include/mbgl/style/source.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbgl/style/source.hpp b/include/mbgl/style/source.hpp index dc3a8d73fb..1d5223fa0d 100644 --- a/include/mbgl/style/source.hpp +++ b/include/mbgl/style/source.hpp @@ -6,6 +6,8 @@ #include <mbgl/util/immutable.hpp> #include <mbgl/style/types.hpp> +#include <mapbox/weak.hpp> + #include <memory> #include <string> @@ -78,6 +80,8 @@ public: // object here, so that separately-obtained references to this object share // identical platform-native peers. util::peer peer; + + virtual mapbox::base::WeakPtr<Source> makeWeakPtr() = 0; }; } // namespace style |