aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core
diff options
context:
space:
mode:
authorGravatar klimpel <anonymous@invalid.net>2016-07-28 15:58:17 +0100
committerGravatar klimpel <anonymous@invalid.net>2016-07-28 15:58:17 +0100
commitca5effa16cd7ed90f0e56084b291e5a2a63a5172 (patch)
treec7dd830728a6880e94ef4aaa296806103edeaeaf /Eigen/src/Core
parentc52c8d76dacfc1d7c4d7d531949fe95d0a38c7d2 (diff)
MSVC-2010 is making problems with SFINAE again. But restricting to the variant for very old compilers (enum, template<typename C> for both function definitions) fixes the problem.
Diffstat (limited to 'Eigen/src/Core')
-rwxr-xr-xEigen/src/Core/util/Meta.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h
index 4b35761e0..b9beb6eb7 100755
--- a/Eigen/src/Core/util/Meta.h
+++ b/Eigen/src/Core/util/Meta.h
@@ -365,10 +365,10 @@ struct has_ReturnType
typedef char yes[1];
typedef char no[2];
- template <typename C> static yes& testFunctor(C const *, typename C::ReturnType const * = 0);
- static no& testFunctor(...);
+ template <typename C> static yes& testFunctor(typename C::ReturnType const *);
+ template <typename C> static no& testFunctor(...);
- static const bool value = sizeof(testFunctor(static_cast<T*>(0))) == sizeof(yes);
+ enum { value = sizeof(testFunctor<T>(0)) == sizeof(yes) };
};
/** \internal In short, it computes int(sqrt(\a Y)) with \a Y an integer.