Browse Source

test: make toolset v141 happy again

Michele Caini 2 years ago
parent
commit
173c4e1c78
1 changed files with 2 additions and 2 deletions
  1. 2 2
      test/entt/entity/storage.cpp

+ 2 - 2
test/entt/entity/storage.cpp

@@ -790,8 +790,8 @@ TYPED_TEST(Storage, Patch) {
 
 
     entt::entity entity{42};
     entt::entity entity{42};
 
 
-    auto callback = [](value_type &elem) {
-        if constexpr(std::is_class_v<value_type>) {
+    auto callback = [](auto &&elem) {
+        if constexpr(std::is_class_v<std::remove_reference_t<decltype(elem)>>) {
             ++elem.value;
             ++elem.value;
         } else {
         } else {
             ++elem;
             ++elem;