diff options
-rw-r--r-- | Eigen/src/Core/Matrix.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/Matrix.h b/Eigen/src/Core/Matrix.h index 80897c48a..779b4424d 100644 --- a/Eigen/src/Core/Matrix.h +++ b/Eigen/src/Core/Matrix.h @@ -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); } |