Просмотр исходного кода

registry: workaround for an issue with MSVC

Michele Caini 6 лет назад
Родитель
Сommit
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 {