diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h index e728d5ab..a057f0bc 100644 --- a/src/common.h +++ b/src/common.h @@ -109,8 +109,8 @@ void ZeroMemory(T& v) { // Placement construct template <typename T, typename... Args> -void Construct(T& placement, Args... args) { - new (&placement) T(args...); +void Construct(T& placement, Args&&... args) { + new (&placement) T(std::forward<Args>(args)...); } // Placement destruct |