Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 2f6562d

Browse files
committed
[build] Keep msvc build working
1 parent fa109b3 commit 2f6562d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

include/mbgl/util/indexed_tuple.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,20 @@ class IndexedTuple<TypeList<Is...>, TypeList<Ts...>> : public std::tuple<Ts...>
3030

3131
template <class I>
3232
auto& get() {
33+
#if _WIN32
34+
return std::get<TypeIndex<I, Is...>::value, Ts...>(*this);
35+
#else
3336
return std::get<TypeIndex<I, Is...>::value>(*this);
37+
#endif
3438
}
3539

3640
template <class I>
3741
const auto& get() const {
42+
#if _WIN32
43+
return std::get<TypeIndex<I, Is...>::value, Ts...>(*this);
44+
#else
3845
return std::get<TypeIndex<I, Is...>::value>(*this);
46+
#endif
3947
}
4048

4149
template <class... Us>

0 commit comments

Comments
 (0)