Workaround clang error introduced by 3117036b80075390dbc46f60aa0d595e5a44661b

:
"template argument for non-type template parameter is treated as function type 'bool (bool)'"
This commit is contained in:
Christoph Hertzberg 2014-06-23 22:33:36 +02:00
parent 15c2c083e8
commit 755be9016a

View File

@ -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