Sfoglia il codice sorgente

test: add missing template keywords

Michele Caini 1 anno fa
parent
commit
8b1b7a0fc9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      test/entt/meta/meta_factory.cpp

+ 1 - 1
test/entt/meta/meta_factory.cpp

@@ -65,7 +65,7 @@ template<typename Type>
 // concept-like approach (waiting for C++20 and concepts)
 // concept-like approach (waiting for C++20 and concepts)
 auto meta_setup(entt::meta_factory<Type> factory) -> decltype(&Type::value, void()) {
 auto meta_setup(entt::meta_factory<Type> factory) -> decltype(&Type::value, void()) {
     using namespace entt::literals;
     using namespace entt::literals;
-    factory.data<&Type::value>("value"_hs).conv<decltype(Type::value)>();
+    factory.template data<&Type::value>("value"_hs).template conv<decltype(Type::value)>();
 }
 }
 
 
 void meta_setup(entt::meta_factory<test::boxed_int> factory) {
 void meta_setup(entt::meta_factory<test::boxed_int> factory) {