Browse Source

test: workaround for a nasty bug of toolset v141 that sees 4 as member pointer (yeah, I'm amazed too)

Michele Caini 2 years ago
parent
commit
a43ffa8f0d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      test/entt/meta/meta_utility.cpp

+ 2 - 2
test/entt/meta/meta_utility.cpp

@@ -184,8 +184,8 @@ TEST_F(MetaUtility, MetaGetter) {
     ASSERT_EQ((entt::meta_getter<clazz, &clazz::cvalue>(invalid)).cast<int>(), 0);
     ASSERT_EQ((entt::meta_getter<clazz, &clazz::cvalue>(instance)).cast<int>(), 0);
 
-    ASSERT_EQ((entt::meta_getter<clazz, 4>(invalid)).cast<int>(), 4);
-    ASSERT_EQ((entt::meta_getter<clazz, 4>(instance)).cast<int>(), 4);
+    ASSERT_EQ((entt::meta_getter<clazz, 1>(invalid)).cast<int>(), 1);
+    ASSERT_EQ((entt::meta_getter<clazz, 1>(instance)).cast<int>(), 1);
 }
 
 TEST_F(MetaUtility, MetaInvokeWithCandidate) {