From 1eec8488a2222d2bdab788749dd8dce749f147b1 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 5 Jan 2009 19:56:32 +0000 Subject: [PATCH] oops, placement new should take a void* --- 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 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(size); } - void *operator new(size_t, Matrix *ptr) throw() + void *operator new(size_t, void *ptr) throw() { return static_cast(ptr); } @@ -151,7 +151,7 @@ class Matrix return ei_aligned_malloc(size); } - void *operator new[](size_t, Matrix *ptr) throw() + void *operator new[](size_t, void *ptr) throw() { return static_cast(ptr); }