diff --git a/src/entt/meta/utility.hpp b/src/entt/meta/utility.hpp index 3e0456976..03d00b476 100644 --- a/src/entt/meta/utility.hpp +++ b/src/entt/meta/utility.hpp @@ -284,16 +284,16 @@ template>) { if constexpr(std::is_void_v) { - (std::forward(maybe_clazz).*std::forward(candidate))(std::forward(other)...); + (std::forward(maybe_clazz).*std::forward(candidate))(std::forward(other)...); return meta_any{std::in_place_type}; } else { - return meta_dispatch((std::forward(maybe_clazz).*std::forward(candidate))(std::forward(other)...)); + return meta_dispatch((std::forward(maybe_clazz).*std::forward(candidate))(std::forward(other)...)); } } else if constexpr(std::is_void_v) { - std::forward(candidate)(std::forward(maybe_clazz), std::forward(other)...); + std::forward(candidate)(std::forward(maybe_clazz), std::forward(other)...); return meta_any{std::in_place_type}; } else { - return meta_dispatch(std::forward(candidate)(std::forward(maybe_clazz), std::forward(other)...)); + return meta_dispatch(std::forward(candidate)(std::forward(maybe_clazz), std::forward(other)...)); } }