mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-24 15:23:13 +08:00
Placement new must use void* to avoid user-specific overloads.
This commit is contained in:
parent
3a4616d6e3
commit
4ccff2d028
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user