Skip to content

Commit 1eb7c78

Browse files
committed
chore: update boost-histogram
1 parent 17eb0f2 commit 1eb7c78

File tree

11 files changed

+36
-16
lines changed

11 files changed

+36
-16
lines changed

extern/config

Submodule config updated 256 files

extern/histogram

Submodule histogram updated 60 files

include/bh_python/accumulators/ostream.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ std::basic_ostream<CharT, Traits>& operator<<(std::basic_ostream<CharT, Traits>&
7979
template <class CharT, class Traits, class T>
8080
std::basic_ostream<CharT, Traits>&
8181
operator<<(std::basic_ostream<CharT, Traits>& os,
82-
const ::boost::histogram::accumulators::thread_safe<T>& x) {
82+
const ::boost::histogram::accumulators::count<T, true>& x) {
8383
os << x.load();
8484
return os;
8585
}

include/bh_python/histogram.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ namespace pybind11 {
2020
/// The descriptor for atomic_* is the same as the descriptor for *, as long this uses
2121
/// standard layout
2222
template <class T>
23-
struct format_descriptor<bh::accumulators::thread_safe<T>> : format_descriptor<T> {
24-
static_assert(std::is_standard_layout<bh::accumulators::thread_safe<T>>::value, "");
23+
struct format_descriptor<bh::accumulators::count<T, true>> : format_descriptor<T> {
24+
static_assert(std::is_standard_layout<bh::accumulators::count<T, true>>::value, "");
2525
};
2626

2727
} // namespace pybind11

include/bh_python/register_histogram.hpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,22 @@
3030
#include <tuple>
3131
#include <vector>
3232

33+
namespace boost {
34+
namespace histogram {
35+
namespace detail {
36+
37+
using _atomic_type = histogram<vector_axis_variant, storage::atomic_int64>;
38+
39+
template <>
40+
struct has_operator_rdiv_impl<_atomic_type, _atomic_type> : detect_base {
41+
using type = mp11::mp_false;
42+
};
43+
44+
} // namespace detail
45+
} // namespace histogram
46+
} // namespace boost
47+
// bh::detail::has_operator_rdiv<histogram_t, histogram_t>{}
48+
3349
template <class S>
3450
auto register_histogram(py::module& m, const char* name, const char* desc) {
3551
using histogram_t = bh::histogram<vector_axis_variant, S>;

0 commit comments

Comments
 (0)