Преглед изворни кода

registry: workaround for an issue with MSVC

Michele Caini пре 6 година
родитељ
комит
fff50d0e50
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/entt/entity/registry.hpp

+ 1 - 1
src/entt/entity/registry.hpp

@@ -108,7 +108,7 @@ class basic_registry {
             }
         }
 
-        decltype(auto) replace(basic_registry &owner, const Entity entt, [[maybe_unused]] Component &&component) {
+        decltype(auto) replace(basic_registry &owner, const Entity entt, [[maybe_unused]] Component component) {
             if constexpr(ENTT_ENABLE_ETO(Component)) {
                 return patch(owner, entt);
             } else {