Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski committed Sep 26, 2021
1 parent 40fef24 commit 534743e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/boost/histogram/accumulators/mean.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class mean {
private:
impl_type data_{0, 0, 0};

friend struct unsafe_access;
friend struct ::boost::histogram::unsafe_access;
};

} // namespace accumulators
Expand Down
2 changes: 1 addition & 1 deletion include/boost/histogram/unsafe_access.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ struct unsafe_access {
*/
template <class T>
static constexpr auto& accumulators_mean_impl(T& m) {
return reinterpret_cast<typename T::impl_type&>(m);
return m.data_;
}
};

Expand Down

0 comments on commit 534743e

Please sign in to comment.