mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
...so the placement new is really trivial:)
This commit is contained in:
@@ -143,7 +143,7 @@ class Matrix
|
||||
|
||||
void *operator new(size_t, void *ptr) throw()
|
||||
{
|
||||
return static_cast<void*>(ptr);
|
||||
return ptr;
|
||||
}
|
||||
|
||||
void *operator new[](size_t size) throw()
|
||||
@@ -153,7 +153,7 @@ class Matrix
|
||||
|
||||
void *operator new[](size_t, void *ptr) throw()
|
||||
{
|
||||
return static_cast<void*>(ptr);
|
||||
return ptr;
|
||||
}
|
||||
|
||||
void operator delete(void * ptr) { ei_aligned_free(static_cast<ByteAlignedAsNeeded *>(ptr), 0); }
|
||||
|
||||
Reference in New Issue
Block a user