aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2019-02-20 13:52:11 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2019-02-20 13:52:11 +0100
commitedd413c184325eab482a82f68b4308eb2b4f4f9f (patch)
tree3173f63b08096c09168549f8e7017fc6518bfb4e /test
parent3b5deeb546d4017b24846f5b0dc3296a50a039fe (diff)
bug #1409: make EIGEN_MAKE_ALIGNED_OPERATOR_NEW* macros empty in c++17 mode:
- this helps clang 5 and 6 to support alignas in STL's containers. - this makes the public API of our (and users) classes cleaner
Diffstat (limited to 'test')
-rw-r--r--test/dynalloc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dynalloc.cpp b/test/dynalloc.cpp
index 1c74866ba..23c90a7b5 100644
--- a/test/dynalloc.cpp
+++ b/test/dynalloc.cpp
@@ -107,7 +107,7 @@ template<typename T> void check_custom_new_delete()
delete[] t;
}
-#if EIGEN_MAX_ALIGN_BYTES>0
+#if EIGEN_MAX_ALIGN_BYTES>0 && (!EIGEN_HAS_CXX17_OVERALIGN)
{
T* t = static_cast<T *>((T::operator new)(sizeof(T)));
(T::operator delete)(t, sizeof(T));