Fixed variadic arguments not being moved

Former-commit-id: 1130a384e982a792d04dc9490a12797cb73bc349
This commit is contained in:
Lynix
2015-02-28 23:59:26 +01:00
parent adb268fec8
commit 655be2864f
8 changed files with 15 additions and 11 deletions

View File

@@ -11,6 +11,7 @@
#include <Nazara/Core/MemoryManager.hpp>
#include <new>
#include <utility>
#include <Nazara/Core/Debug.hpp>
inline void NzOperatorDelete(void* ptr)
@@ -32,7 +33,7 @@ inline void* NzOperatorNew(std::size_t size)
}
template<typename T, typename... Args>
T* NzPlacementNew(void* ptr, Args... args)
T* NzPlacementNew(void* ptr, Args&&... args)
{
return new (ptr) T(std::forward<Args>(args)...);
}