From 442304bc1c3d74681beaef735631a62eecd5745f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 14 Jan 2015 00:01:20 +0000 Subject: [PATCH] Add missing cast to void* in placement new --- src/memory.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memory.hh b/src/memory.hh index b48d3d3f..9c0ec462 100644 --- a/src/memory.hh +++ b/src/memory.hh @@ -87,7 +87,7 @@ struct Allocator template void construct(U* p, Args&&... args) { - new (p) U(std::forward(args)...); + new ((void*)p) U(std::forward(args)...); } template