diff options
Diffstat (limited to 'Eigen/src/Core')
-rwxr-xr-x | Eigen/src/Core/util/Meta.h | 6 |
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. |