diff --git a/include/boost/histogram/adaptive_storage.hpp b/include/boost/histogram/adaptive_storage.hpp index 97c9e175..dc7f9f73 100644 --- a/include/boost/histogram/adaptive_storage.hpp +++ b/include/boost/histogram/adaptive_storage.hpp @@ -464,6 +464,8 @@ struct adaptive_storage { return t == u; } + bool operator()(const mp_int& t, const mp_int& u) { return u == t; } + bool operator()(const mp_int& t, const double& u) { return static_cast(t) == u; }