Просмотр исходного кода

type_info: avoid testing constexpr-ness because older compilers don't guarantee it

Michele Caini 5 лет назад
Родитель
Сommit
aa146c4125
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      test/entt/core/type_info.cpp

+ 1 - 1
test/entt/core/type_info.cpp

@@ -54,7 +54,7 @@ TEST(TypeInfo, Functionalities) {
     ASSERT_EQ(entt::type_id<int &>(), entt::type_id<int &&>());
     ASSERT_EQ(entt::type_id<int &>(), entt::type_id<int>());
 
-    constexpr auto info = entt::type_id<int>();
+    auto info = entt::type_id<int>();
     const auto unnamed = entt::type_id<float>();
     entt::type_info empty{};