From e71de20f1667e9e10dc315108a34550fb3226270 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 5 Jan 2009 20:06:52 +0000 Subject: [PATCH] ...so the placement new is really trivial:) --- Eigen/src/Core/Matrix.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/Matrix.h b/Eigen/src/Core/Matrix.h index 779b4424d..f990167c3 100644 --- a/Eigen/src/Core/Matrix.h +++ b/Eigen/src/Core/Matrix.h @@ -143,7 +143,7 @@ class Matrix void *operator new(size_t, void *ptr) throw() { - return static_cast(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(ptr); + return ptr; } void operator delete(void * ptr) { ei_aligned_free(static_cast(ptr), 0); }