diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-01-05 19:56:32 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-01-05 19:56:32 +0000 |
commit | 1eec8488a2222d2bdab788749dd8dce749f147b1 (patch) | |
tree | 0ec82014b3a85f3a113a1fbd70fb0a309ab2849e | |
parent | 9dcde48980f2c80462bf9da7a2af90480aebf14a (diff) |
oops, placement new should take a void*
-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); } |