mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-12 19:20:36 +08:00
oops, placement new should take a void*
This commit is contained in:
parent
9dcde48980
commit
1eec8488a2
@ -141,7 +141,7 @@ class Matrix
|
||||
return ei_aligned_malloc<ByteAlignedAsNeeded>(size);
|
||||
}
|
||||
|
||||
void *operator new(size_t, Matrix *ptr) throw()
|
||||
void *operator new(size_t, void *ptr) throw()
|
||||
{
|
||||
return static_cast<void*>(ptr);
|
||||
}
|
||||
@ -151,7 +151,7 @@ class Matrix
|
||||
return ei_aligned_malloc<ByteAlignedAsNeeded>(size);
|
||||
}
|
||||
|
||||
void *operator new[](size_t, Matrix *ptr) throw()
|
||||
void *operator new[](size_t, void *ptr) throw()
|
||||
{
|
||||
return static_cast<void*>(ptr);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user