From 67d864114dcc32742cf4ae98db39d4bd5b062e0e Mon Sep 17 00:00:00 2001 From: Hans Dembinski Date: Wed, 24 Apr 2024 11:18:24 +0200 Subject: [PATCH] struct to class --- include/boost/histogram/detail/chunk_vector.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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_; };