aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core
diff options
context:
space:
mode:
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.