diff options
author | Gael Guennebaud <g.gael@free.fr> | 2019-01-15 10:51:03 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2019-01-15 10:51:03 +0100 |
commit | e7d4d4f192fb77bf3bf4875b2e56dfbe7ca9b24a (patch) | |
tree | e4a8b442658d94842bb441c9edc1ea2b1e3fcf8d /test/main.h | |
parent | 7b3aab0936e31acc090e2f03efbf4ead00936291 (diff) |
cleanup
Diffstat (limited to 'test/main.h')
-rw-r--r-- | test/main.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/main.h b/test/main.h index 36784b1f4..9c1465e9a 100644 --- a/test/main.h +++ b/test/main.h @@ -389,6 +389,13 @@ inline void verify_impl(bool condition, const char *testname, const char *file, namespace Eigen { +template<typename T1,typename T2> +typename internal::enable_if<internal::is_same<T1,T2>::value,bool>::type +is_same_type(const T1&, const T2&) +{ + return true; +} + template<typename T> inline typename NumTraits<T>::Real test_precision() { return NumTraits<T>::dummy_precision(); } template<> inline float test_precision<float>() { return 1e-3f; } template<> inline double test_precision<double>() { return 1e-6; } |