mirror of
https://github.com/boostorg/histogram.git
synced 2025-05-11 21:24:14 +00:00
remove double implementation
This commit is contained in:
parent
d2a633cbc7
commit
47dda5edfc
@ -260,13 +260,13 @@ constexpr auto weight_sample_indices() {
|
||||
|
||||
template <class T, class U>
|
||||
void fill_storage(mp11::mp_int<-1>, mp11::mp_int<-1>, T&& t, U&&) {
|
||||
static_if<is_incrementable<remove_cvref_t<T>>>(
|
||||
static_if<has_operator_preincrement<remove_cvref_t<T>>>(
|
||||
[](auto&& t) { ++t; }, [](auto&& t) { t(); }, std::forward<T>(t));
|
||||
}
|
||||
|
||||
template <class IW, class T, class U>
|
||||
void fill_storage(IW, mp11::mp_int<-1>, T&& t, U&& args) {
|
||||
static_if<is_incrementable<remove_cvref_t<T>>>(
|
||||
static_if<has_operator_preincrement<remove_cvref_t<T>>>(
|
||||
[](auto&& t, const auto& w) { t += w; },
|
||||
[](auto&& t, const auto& w) {
|
||||
#ifdef BOOST_HISTOGRAM_WITH_ACCUMULATORS_SUPPORT
|
||||
|
@ -208,8 +208,6 @@ BOOST_HISTOGRAM_DETECT(is_iterator,
|
||||
BOOST_HISTOGRAM_DETECT(is_streamable,
|
||||
(std::declval<std::ostream&>() << std::declval<T&>()));
|
||||
|
||||
BOOST_HISTOGRAM_DETECT(is_incrementable, (++std::declval<T&>()));
|
||||
|
||||
BOOST_HISTOGRAM_DETECT(has_operator_preincrement, (++std::declval<T&>()));
|
||||
|
||||
BOOST_HISTOGRAM_DETECT_BINARY(has_operator_equal,
|
||||
|
Loading…
x
Reference in New Issue
Block a user