diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-07-22 15:30:54 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-07-22 15:30:54 +0200 |
commit | 24af67a6cc102f8e5dde881608880b6b5264e336 (patch) | |
tree | ad60b8068ba395f9f9457e4c3e5df480170cab78 /test/boostmultiprec.cpp | |
parent | 395c835f4b11fa70bf8eaaffab1177e6120585d3 (diff) |
Fix boostmultiprec for C++03
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 { |