Placement new must use void* to avoid user-specific overloads.

This commit is contained in:
Martinho Fernandes 2014-01-10 11:20:40 +01:00
parent 3a4616d6e3
commit 4ccff2d028

View File

@ -765,7 +765,7 @@ public:
template <typename U, typename... Args>
void construct( U* u, Args&&... args)
{
::new( u ) U( std::forward<Args>( args )... );
::new( static_cast<void*>(u) ) U( std::forward<Args>( args )... );
}
#endif