Add missing cast to void* in placement new

This commit is contained in:
Maxime Coste 2015-01-14 00:01:20 +00:00
parent 2415d3f63c
commit 442304bc1c

View File

@ -87,7 +87,7 @@ struct Allocator
template<class U, class... Args>
void construct(U* p, Args&&... args)
{
new (p) U(std::forward<Args>(args)...);
new ((void*)p) U(std::forward<Args>(args)...);
}
template<class U>