mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
oops, placement new should take a void*
This commit is contained in:
@@ -141,7 +141,7 @@ class Matrix
|
|||||||
return ei_aligned_malloc<ByteAlignedAsNeeded>(size);
|
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);
|
return static_cast<void*>(ptr);
|
||||||
}
|
}
|
||||||
@@ -151,7 +151,7 @@ class Matrix
|
|||||||
return ei_aligned_malloc<ByteAlignedAsNeeded>(size);
|
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);
|
return static_cast<void*>(ptr);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user