diff --git a/Include/AuroraUtils.hpp b/Include/AuroraUtils.hpp index 8fabb5a1..a64ddfd9 100644 --- a/Include/AuroraUtils.hpp +++ b/Include/AuroraUtils.hpp @@ -12,11 +12,11 @@ #endif template -static inline AuSPtr AuMakeShared(Args... args) +static inline AuSPtr AuMakeShared(Args&&... args) { try { - return AURORA_RUNTIME_MAKE_SHARED(args...); + return AURORA_RUNTIME_MAKE_SHARED(std::forward(args)...); } catch (...) { @@ -29,9 +29,9 @@ static inline AuSPtr AuMakeShared(Args... args) #endif template -static inline auto AuMakePair(Args... args) +static inline auto AuMakePair(Args&&... args) { - return AURORA_RUNTIME_MAKE_PAIR(args...); + return AURORA_RUNTIME_MAKE_PAIR(std::forward(args)...); } #if defined(AURORA_IS_MODERNNT_DERIVED) && (defined(_WINDOWS_) || defined(_OTHER_MS_MAIN_HEADER_GUARDS_HERE))