aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/mixingtypes.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-02-20 09:32:49 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-02-20 09:32:49 +0100
commit01b844057986765d005dd1d3a52a5cba0cfb3f1c (patch)
tree7093ef4e2c8877d8b46dee9c8d71d021462d0b57 /test/mixingtypes.cpp
parent3594451ee02f006d987e416e711103b2bc860454 (diff)
With C++11 Matrix<float> + Matrix<complex<float>> does not even compile
Diffstat (limited to 'test/mixingtypes.cpp')
-rw-r--r--test/mixingtypes.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/mixingtypes.cpp b/test/mixingtypes.cpp
index 048f7255a..71f099bb8 100644
--- a/test/mixingtypes.cpp
+++ b/test/mixingtypes.cpp
@@ -52,7 +52,10 @@ template<int SizeAtCompileType> void mixingtypes(int size = SizeAtCompileType)
mf+mf;
VERIFY_RAISES_ASSERT(mf+md);
+#ifndef EIGEN_HAS_STD_RESULT_OF
+ // this one does not even compile with C++11
VERIFY_RAISES_ASSERT(mf+mcf);
+#endif
// the following do not even compile since the introduction of evaluators
// VERIFY_RAISES_ASSERT(vf=vd);
// VERIFY_RAISES_ASSERT(vf+=vd);