mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
merge with default branch
This commit is contained in:
@@ -109,9 +109,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
|
||||
|
||||
@@ -170,13 +170,8 @@
|
||||
) \
|
||||
)
|
||||
|
||||
#ifdef EIGEN2_SUPPORT
|
||||
#define EIGEN_STATIC_ASSERT_NON_INTEGER(TYPE) \
|
||||
eigen_assert(!NumTraits<Scalar>::IsInteger);
|
||||
#else
|
||||
#define EIGEN_STATIC_ASSERT_NON_INTEGER(TYPE) \
|
||||
#define EIGEN_STATIC_ASSERT_NON_INTEGER(TYPE) \
|
||||
EIGEN_STATIC_ASSERT(!NumTraits<TYPE>::IsInteger, THIS_FUNCTION_IS_NOT_FOR_INTEGER_NUMERIC_TYPES)
|
||||
#endif
|
||||
|
||||
|
||||
// static assertion failing if it is guaranteed at compile-time that the two matrix expression types have different sizes
|
||||
|
||||
Reference in New Issue
Block a user