Closed skramm closed 3 years ago
Don't you need a keyword like "public" there for inheritance?
I think it got optional/default at some point (C++11?), but anyway, I tried with
struct accumulator_with_metadata : public accumulators::count<> {
same problem.
Sorry, was on my phone and was just looking for possible issues. Yes, "private" is the default, which I rarely find useful, so I'd forgotten it worked.
I think the issue here might be that Coliru using an old version of Boost that doesn't have this accumulator. I don't seem to be able to include #include <boost/histogram/accumulators/count.hpp>
. If I try the exact same code on Wandbox link, it works just fine (and I can include the above file explicitly if I want to, as well).
Pretty sure that's the problem.
Just checked, Coliru uses Boost 1.71.0. Current version is 1.75.0, and Boost.Histogram was introduced in 1.70.0 (IIRC, +/- 1), so that's a pretty early version for Boost.Histogram. Some things available now should be expected to be missing back then.
Ah, well ok, thanks, I should have checked that, sorry for the noise! I'll try to upgrade my machines boost version.
Hi, First, congrats for this great lib that I already use for basic 1d histograms.
I am currently experimenting with custom accumulators and I am facing a build issue. So back to basics, I tried to build the provided sample code. And no success! See here, second example: I juste pasted that, and got:
See it here on Coliru. (This is with C++17, I try to stick to C++14 and got the same message)
Any idea?