Parcourir la source

registry: workaround for an issue with MSVC

Michele Caini il y a 6 ans
Parent
commit
fff50d0e50
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 {