mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
Fix boostmultiprec for C++03
This commit is contained in:
parent
395c835f4b
commit
24af67a6cc
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user