From 336f0a848669ad3cc0a6224d46d5cbf602483d99 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 7 Jan 2009 16:58:17 +0000 Subject: fine tuning in dot() and sum(), and prepare for the sparse versions... --- Eigen/src/Core/util/Memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Eigen/src/Core/util') diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index f6e2dcb32..f31304d97 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -73,7 +73,7 @@ inline T* ei_aligned_malloc(size_t size) // and this type has a custom operator new, then we want to honor this operator new! // so when we use C functions to allocate memory, we must be careful to call manually the constructor using // the special placement-new syntax. - return new(void_result) T[size]; + return ::new(void_result) T[size]; } else return new T[size]; // here we really want a new, not a malloc. Justification: if the user uses Eigen on -- cgit v1.2.3