Commit 3f56d32b authored by Martin Heistermann's avatar Martin Heistermann
Browse files

ACG histograms: use more general is_assignable instead of is_same.

Cf. MR !186
parent 58449a05
Pipeline #3613 passed with stage
in 91 minutes and 34 seconds
......@@ -104,7 +104,7 @@ public:
template<typename IterT>
HistogramT(IterT begin, IterT end, size_t max_bins)
static_assert(std::is_same<T, typename IterT::value_type>::value, "IterT incompatible with T.");
static_assert(std::is_assignable<T&, typename IterT::value_type>::value, "IterT incompatible with T.");
static_assert(std::is_floating_point<typename IterT::value_type>::value, "HistogramT currently only supports floating point values.");
assert(max_bins > 0);
const size_t n = std::distance(begin, end);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment