aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-01-07 16:58:17 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-01-07 16:58:17 +0000
commit336f0a848669ad3cc0a6224d46d5cbf602483d99 (patch)
treeabc30c95f323686fc0c16cc5daefc3f6f05fa9f5 /Eigen/src/Core/util
parent6b9d647fc2939f657ac1622717d2fd125cc42879 (diff)
fine tuning in dot() and sum(), and prepare for the sparse versions...
Diffstat (limited to 'Eigen/src/Core/util')
-rw-r--r--Eigen/src/Core/util/Memory.h2
1 files changed, 1 insertions, 1 deletions
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