mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Workaround clang error introduced by 3117036b80
: "template argument for non-type template parameter is treated as function type 'bool (bool)'"
This commit is contained in:
@@ -107,9 +107,9 @@
|
|||||||
{Eigen::internal::static_assertion<bool(CONDITION)>::MSG;}
|
{Eigen::internal::static_assertion<bool(CONDITION)>::MSG;}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
// In some cases clang interprets bool(CONDITION) as function declaration
|
||||||
#define EIGEN_STATIC_ASSERT(CONDITION,MSG) \
|
#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
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user