Explorar o código

test: make toolset v141 happy again

Michele Caini %!s(int64=2) %!d(string=hai) anos
pai
achega
173c4e1c78
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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};
 
-    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;
         } else {
             ++elem;