diff --git a/include/boost/histogram/detail/chunk_vector.hpp b/include/boost/histogram/detail/chunk_vector.hpp index 837f753c..18fa8b51 100644 --- a/include/boost/histogram/detail/chunk_vector.hpp +++ b/include/boost/histogram/detail/chunk_vector.hpp @@ -21,7 +21,8 @@ namespace detail { // custom container type. If time permits, this will be expanded // into a proper container type. template -struct chunk_vector { +class chunk_vector { +public: using base = std::vector; using allocator_type = typename base::allocator_type; using pointer = typename base::pointer; @@ -90,6 +91,7 @@ struct chunk_vector { size_type size() const noexcept { return vec_.size() / chunk_; } +private: size_type chunk_; base vec_; };