histogram icon indicating copy to clipboard operation
histogram copied to clipboard

Confusing error on `make_histogram(axis::integer(0, 1), dense_storage())`

Open HDembinski opened this issue 2 years ago • 0 comments

// c++17
auto h = bh::make_histogram(bh::axis::integer(0, 1), bh::dense_storage());

This does not work (and currently shouldn't!) but fails in mysterious ways that are difficult to comprehend. If possible, we should make this work and deprecate make_histogram_with or fail at the earliest. The code interprets the second argument as an axis, but hopefully we can prevent that with better constraints on the template.

HDembinski avatar Feb 04 '22 15:02 HDembinski