Skip to content

Commit 534743e

Browse files
committed
better
1 parent 40fef24 commit 534743e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/boost/histogram/accumulators/mean.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class mean {
154154
private:
155155
impl_type data_{0, 0, 0};
156156

157-
friend struct unsafe_access;
157+
friend struct ::boost::histogram::unsafe_access;
158158
};
159159

160160
} // namespace accumulators

include/boost/histogram/unsafe_access.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ struct unsafe_access {
117117
*/
118118
template <class T>
119119
static constexpr auto& accumulators_mean_impl(T& m) {
120-
return reinterpret_cast<typename T::impl_type&>(m);
120+
return m.data_;
121121
}
122122
};
123123

0 commit comments

Comments
 (0)