diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-07-11 15:11:14 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-07-12 20:42:29 +0300 |
commit | f1ac757bd28351fd57113a1e16f6c2e00ab193c1 (patch) | |
tree | a68be48a2c6934c11fbda3efbc6077c45e703906 /include/mbgl/util/indexed_tuple.hpp | |
parent | 1aacc88f350d2d54337cdacb1a653785c759586b (diff) | |
download | qtlocation-mapboxgl-f1ac757bd28351fd57113a1e16f6c2e00ab193c1.tar.gz |
[core] GCC 4.9 does not fully support custom variable templates
Diffstat (limited to 'include/mbgl/util/indexed_tuple.hpp')
-rw-r--r-- | include/mbgl/util/indexed_tuple.hpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/mbgl/util/indexed_tuple.hpp b/include/mbgl/util/indexed_tuple.hpp index a414639530..fd0b931d36 100644 --- a/include/mbgl/util/indexed_tuple.hpp +++ b/include/mbgl/util/indexed_tuple.hpp @@ -31,16 +31,13 @@ public: using std::tuple<Ts...>::tuple; template <class I> - static constexpr std::size_t Index = TypeIndex<I, Is...>::value; - - template <class I> auto& get() { - return std::get<Index<I>>(*this); + return std::get<TypeIndex<I, Is...>::value>(*this); } template <class I> const auto& get() const { - return std::get<Index<I>>(*this); + return std::get<TypeIndex<I, Is...>::value>(*this); } template <class... Js, class... Us> |