Used std::forward for PlacementNew function
Former-commit-id: e77b64bb90d849d856d93426a68b4d76cb499971
This commit is contained in:
parent
4a1d7bc503
commit
35c0bc7087
|
|
@ -34,7 +34,7 @@ inline void* NzOperatorNew(std::size_t size)
|
|||
template<typename T, typename... Args>
|
||||
T* NzPlacementNew(void* ptr, Args... args)
|
||||
{
|
||||
return new (ptr) T(args...);
|
||||
return new (ptr) T(std::forward<Args>(args)...);
|
||||
}
|
||||
|
||||
#include <Nazara/Core/DebugOff.hpp>
|
||||
|
|
|
|||
Loading…
Reference in New Issue