Boost logo

Boost Users :

Subject: Re: [Boost-users] [Accumulators][ConceptCheck]: Many warnings for constructing accumulator with density
From: Roland Bock (rbock_at_[hidden])
Date: 2010-04-15 08:28:20


Roland Bock wrote:
> Hi,
>
> the following line results in several kB of warnings:
>
> accumulator_set<double, stats<tag::density > >
> acc(tag::density::cache_size=10, tag::density::num_bins=5);
>
>
> include/boost/concept_check.hpp:335: warning: non-static reference
> 'const double&
> boost::UnaryFunction<boost::numeric::functional::as_min<const double,
> void>, double, const double&>::arg' in class without a constructor
>
>
> gcc-4.2.4, boost-1.41
>
> Am I doing something wrong? Or is there a way to avoid these warnings
> (other than to turn off warnings)?
>
>
> Regards,
>
> Roland

PS: It does not seem to be related to tag::density. I get very similar
warnings with this

accumulator_set<int, stats<tag::min> > acc;


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net