summaryrefslogtreecommitdiff
path: root/include/mbgl/util/tuple.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/util/tuple.hpp')
-rw-r--r--include/mbgl/util/tuple.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/mbgl/util/tuple.hpp b/include/mbgl/util/tuple.hpp
new file mode 100644
index 0000000000..3f6e80a8c7
--- /dev/null
+++ b/include/mbgl/util/tuple.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+// Polyfill needed by Windows because MSVC STL
+// is not compatible with our IndexedTuple code
+#if defined(_WINDOWS)
+
+#include <tao/tuple/tuple.hpp>
+
+#define get_polyfill tao::get
+#define tuple_polyfill tao::tuple
+
+#else
+
+#include <tuple>
+
+#define get_polyfill std::get
+#define tuple_polyfill std::tuple
+
+#endif