mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
...so the placement new is really trivial:)
This commit is contained in:
parent
1eec8488a2
commit
e71de20f16
@ -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); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user