diff --git a/include/boost/histogram/adaptive_storage.hpp b/include/boost/histogram/adaptive_storage.hpp index a14369c3..f7fb8b09 100644 --- a/include/boost/histogram/adaptive_storage.hpp +++ b/include/boost/histogram/adaptive_storage.hpp @@ -174,6 +174,7 @@ public: struct storage_tag {}; using allocator_type = Allocator; using value_type = double; + class reference; // forward declare #ifndef BOOST_HISTOGRAM_DOXYGEN_INVOKED using mp_int = boost::multiprecision::number(tp[idx_]); }); } - protected: + private: template bool op(const reference_t& rhs) const { const auto i = idx_; @@ -463,6 +464,7 @@ private: template friend class reference_t; + friend class reference; Buffer* buffer_; std::size_t idx_;