Explorar el Código

added a static_assert in a test to suppress a warning from GCC

Michele Caini hace 6 años
padre
commit
be3597524f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      test/entt/entity/registry.cpp

+ 1 - 0
test/entt/entity/registry.cpp

@@ -1133,6 +1133,7 @@ TEST(Registry, CreateManyEntitiesWithComponentsAtOnce) {
     registry.destroy(registry.create());
 
     const auto [iptr, cptr, eptr] = registry.create<int, char, empty_type>(std::begin(entities), std::end(entities));
+    static_assert(std::is_same_v<typename decltype(eptr)::reference, empty_type>);
 
     ASSERT_FALSE(registry.empty<int>());
     ASSERT_FALSE(registry.empty<char>());