oops, placement new should take a void*

This commit is contained in:
Benoit Jacob 2009-01-05 19:56:32 +00:00
parent 9dcde48980
commit 1eec8488a2

View File

@ -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);
}