aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util/StaticAssert.h
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2014-06-23 22:33:36 +0200
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2014-06-23 22:33:36 +0200
commit755be9016ab8f8ddcbe96699d772e05de1248c2c (patch)
treef73a3455809d970294e167d17300c21b67b63772 /Eigen/src/Core/util/StaticAssert.h
parent15c2c083e818ee6ca533e2b99a661ec4a0bba88c (diff)
Workaround clang error introduced by 3117036b80075390dbc46f60aa0d595e5a44661b
: "template argument for non-type template parameter is treated as function type 'bool (bool)'"
Diffstat (limited to 'Eigen/src/Core/util/StaticAssert.h')
-rw-r--r--Eigen/src/Core/util/StaticAssert.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/util/StaticAssert.h b/Eigen/src/Core/util/StaticAssert.h
index 8872c5b64..ac2c0bedd 100644
--- a/Eigen/src/Core/util/StaticAssert.h
+++ b/Eigen/src/Core/util/StaticAssert.h
@@ -107,9 +107,9 @@
{Eigen::internal::static_assertion<bool(CONDITION)>::MSG;}
#else
-
+ // In some cases clang interprets bool(CONDITION) as function declaration
#define EIGEN_STATIC_ASSERT(CONDITION,MSG) \
- if (Eigen::internal::static_assertion<bool(CONDITION)>::MSG) {}
+ if (Eigen::internal::static_assertion<static_cast<bool>(CONDITION)>::MSG) {}
#endif