diff --git a/src/entt/core/memory.hpp b/src/entt/core/memory.hpp index 86d9a670b..0a020c919 100644 --- a/src/entt/core/memory.hpp +++ b/src/entt/core/memory.hpp @@ -180,7 +180,7 @@ struct uses_allocator_construction { static_assert(std::uses_allocator_v, "Ill-formed request"); if constexpr(std::is_constructible_v) { - return std::tuple(std::allocator_arg, allocator, std::forward(params)...); + return std::tuple{std::allocator_arg, allocator, std::forward(params)...}; } else { static_assert(std::is_constructible_v, "Ill-formed request"); return std::forward_as_tuple(std::forward(params)..., allocator); @@ -281,7 +281,7 @@ constexpr Type make_obj_using_allocator(const Allocator &allocator, Args &&...ar */ template constexpr Type *uninitialized_construct_using_allocator(Type *value, const Allocator &allocator, Args &&...args) { - return std::apply([&](auto &&...curr) { return new(value) Type(std::forward(curr)...); }, internal::uses_allocator_construction::args(allocator, std::forward(args)...)); + return std::apply([value](auto &&...curr) { return new(value) Type(std::forward(curr)...); }, internal::uses_allocator_construction::args(allocator, std::forward(args)...)); } } // namespace entt