소스 검색

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 {