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

Multiprecision needs to be explicitly added

parent fbe8857e
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,9 @@
#include <set>
#include <chrono>
#if defined(TEQP_MULTIPRECISION_ENABLED)
#include "boost/multiprecision/cpp_bin_float.hpp"
#endif
// autodiff include
#include <autodiff/forward/dual.hpp>
......@@ -65,9 +67,11 @@ namespace teqp {
else if constexpr (is_mcx_t<T>()) {
return expr.real();
}
#if defined(TEQP_MULTIPRECISION_ENABLED)
else if constexpr (boost::multiprecision::is_number<T>()) {
return static_cast<double>(expr);
}
#endif
else {
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