From 24af67a6cc102f8e5dde881608880b6b5264e336 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 22 Jul 2016 15:30:54 +0200 Subject: Fix boostmultiprec for C++03 --- test/boostmultiprec.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/boostmultiprec.cpp') 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() { return 1e-50; } + + namespace internal { + template + struct cast_impl + { + static inline NewType run(const Real& x) + { + return x.template convert_to(); + } + }; + } } namespace boost { -- cgit v1.2.3