Add missing cast to void* in placement new
This commit is contained in:
parent
2415d3f63c
commit
442304bc1c
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user