summaryrefslogtreecommitdiff
path: root/include/mbgl/style/source.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/source.hpp')
-rw-r--r--include/mbgl/style/source.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mbgl/style/source.hpp b/include/mbgl/style/source.hpp
index 0e6e32b112..f2dfb6a896 100644
--- a/include/mbgl/style/source.hpp
+++ b/include/mbgl/style/source.hpp
@@ -4,6 +4,7 @@
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/util/optional.hpp>
#include <mbgl/util/range.hpp>
+#include <mbgl/util/any.hpp>
#include <mbgl/style/types.hpp>
#include <mbgl/style/query.hpp>
@@ -64,6 +65,11 @@ public:
class Impl;
const std::unique_ptr<Impl> baseImpl;
+ // For use in SDK bindings, which store a reference to a platform-native peer
+ // object here, so that separately-obtained references to this object share
+ // identical platform-native peers.
+ any peer;
+
protected:
const SourceType type;
Source(SourceType, std::unique_ptr<Impl>);