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