Boost logo

Boost Users :

From: Eric Niebler (eric_at_[hidden])
Date: 2007-12-12 17:22:52


Olivier Tournaire wrote:
> Thank you Eric, it now compiles fine.
> However, I am still having problem to acces the histogram :
>
> typedef iterator_range<std::vector<std::pair<double, double> >::iterator
> > histogram_type;
> histogram_type histogram =
> tag::density(angular_acc); // error C2143: erreur de syntaxe : absence
> de ';' avant '<' (--> "syntax error : missing ';' before '<'")

Your problem is here, but I bet you can find it yourself if you read the
docs on extracting results: http://tinyurl.com/2q2ttl
(http://boost-sandbox.sourceforge.net/libs/accumulators/doc/html/accumulators/user_s_guide.html#accumulators.user_s_guide.the_accumulators_framework.extracting_results)

Hint: feature tags are in the "tags" namespace, but extractors are not.

And for the return type of the density extractor, you should look at the
docs for density: http://tinyurl.com/3ycetz
(http://boost-sandbox.sourceforge.net/libs/accumulators/doc/html/accumulators/user_s_guide/the_statistical_accumulators_library.html#accumulators.user_s_guide.the_statistical_accumulators_library.density)

-- 
Eric Niebler
Boost Consulting
www.boost-consulting.com

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