summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2021-04-08 10:55:06 +0300
committerIvo van Dongen <info@ivovandongen.nl>2021-04-08 10:55:06 +0300
commit2f6562d46bc33d44b8880334e8f2c5aef4e21ff9 (patch)
tree4774a006cffcda96b7e619f7ab990baea9740876
parentfa109b37b255e50e7a6c85ce9fc127df6eca6d82 (diff)
downloadqtlocation-mapboxgl-2f6562d46bc33d44b8880334e8f2c5aef4e21ff9.tar.gz
[build] Keep msvc build working
-rw-r--r--include/mbgl/util/indexed_tuple.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mbgl/util/indexed_tuple.hpp b/include/mbgl/util/indexed_tuple.hpp
index fc22d1ee35..0241b8d79a 100644
--- a/include/mbgl/util/indexed_tuple.hpp
+++ b/include/mbgl/util/indexed_tuple.hpp
@@ -30,12 +30,20 @@ public:
template <class I>
auto& get() {
+#if _WIN32
+ return std::get<TypeIndex<I, Is...>::value, Ts...>(*this);
+#else
return std::get<TypeIndex<I, Is...>::value>(*this);
+#endif
}
template <class I>
const auto& get() const {
+#if _WIN32
+ return std::get<TypeIndex<I, Is...>::value, Ts...>(*this);
+#else
return std::get<TypeIndex<I, Is...>::value>(*this);
+#endif
}
template <class... Us>