diff options
Diffstat (limited to 'src/mbgl/gfx/texture.hpp')
-rw-r--r-- | src/mbgl/gfx/texture.hpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/mbgl/gfx/texture.hpp b/src/mbgl/gfx/texture.hpp index 758bdd1b09..a957c4ebdf 100644 --- a/src/mbgl/gfx/texture.hpp +++ b/src/mbgl/gfx/texture.hpp @@ -52,21 +52,19 @@ public: TextureWrapType wrapY; }; -namespace detail { - template <class> class TextureBindings; template <class... Ts> -class TextureBindings<TypeList<Ts...>> { +class TextureBindings<TypeList<Ts...>> final + : public IndexedTuple<TypeList<Ts...>, TypeList<ExpandToType<Ts, TextureBinding>...>> { + using Base = IndexedTuple<TypeList<Ts...>, TypeList<ExpandToType<Ts, TextureBinding>...>>; + public: - using Type = IndexedTuple<TypeList<Ts...>, TypeList<ExpandToType<Ts, TextureBinding>...>>; + template <class... Args> + TextureBindings(Args&&... args) : Base(std::forward<Args>(args)...) { + } }; -} // namespace detail - -template <class TextureTypeList> -using TextureBindings = typename detail::TextureBindings<TextureTypeList>::Type; - } // namespace gfx } // namespace mbgl |