Skip to content
Snippets Groups Projects
Commit 69cc9de8 authored by Ian Bell's avatar Ian Bell
Browse files

Did I fix the multiprecision issue?

parent 4a76adee
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
#include <set> #include <set>
#include <chrono> #include <chrono>
#include "boost/multiprecision/cpp_bin_float.hpp"
// Registration of types that are considered to be containers // Registration of types that are considered to be containers
// See https://stackoverflow.com/a/12045843 // See https://stackoverflow.com/a/12045843
template <typename Container> template <typename Container>
...@@ -55,6 +57,9 @@ auto getbaseval(const T& expr) ...@@ -55,6 +57,9 @@ auto getbaseval(const T& expr)
else if constexpr (is_mcx_t<T>()) { else if constexpr (is_mcx_t<T>()) {
return expr.real(); return expr.real();
} }
else if constexpr (boost::multiprecision::is_number<T>()) {
return static_cast<double>(expr);
}
else { else {
return expr; return expr;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment