diff options
Diffstat (limited to 'test/boostmultiprec.cpp')
-rw-r--r-- | test/boostmultiprec.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/boostmultiprec.cpp b/test/boostmultiprec.cpp index a83ae4b78..3e16aeabd 100644 --- a/test/boostmultiprec.cpp +++ b/test/boostmultiprec.cpp @@ -71,6 +71,17 @@ namespace Eigen { template<> Real test_precision<Real>() { return 1e-50; } + + namespace internal { + template<typename NewType> + struct cast_impl<Real,NewType> + { + static inline NewType run(const Real& x) + { + return x.template convert_to<NewType>(); + } + }; + } } namespace boost { |