From 69cc9de8ed60c2208bf11a3599d6b175de8266dc Mon Sep 17 00:00:00 2001
From: Ian Bell <ian.bell@nist.gov>
Date: Mon, 8 Nov 2021 10:20:40 -0500
Subject: [PATCH] Did I fix the multiprecision issue?

---
 include/teqp/types.hpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/teqp/types.hpp b/include/teqp/types.hpp
index 60d5147..6469a5c 100644
--- a/include/teqp/types.hpp
+++ b/include/teqp/types.hpp
@@ -9,6 +9,8 @@
 #include <set>
 #include <chrono>
 
+#include "boost/multiprecision/cpp_bin_float.hpp"
+
 // Registration of types that are considered to be containers
 // See https://stackoverflow.com/a/12045843
 template <typename Container>
@@ -55,6 +57,9 @@ auto getbaseval(const T& expr)
     else if constexpr (is_mcx_t<T>()) {
         return expr.real();
     }
+    else if constexpr (boost::multiprecision::is_number<T>()) {
+        return static_cast<double>(expr);
+    }
     else {
         return expr;
     }
-- 
GitLab