Boost logo

Boost Users :

From: Eric Niebler (eric_at_[hidden])
Date: 2007-12-11 15:46:55


Olivier Tournaire wrote:
> Hi,
>
> When I use this
>
> std::cout << " count(acc) = " <<
> boost::accumulators::extract::count(angular_acc) << std::endl;
>
> to extract a value from my accumulator, I get compile errors :
>
> boost\detail\function1.hpp(67) : error C2065: 'UnaryFunction' :
> identificateur non déclaré ("undeclared identifier")
> ...
> boost\detail\function1.hpp(67) : error C2275: 'impl' : utilisation non
> conforme de ce type comme expression ("*illegal use of this type as an
> expression")*
> boost\detail\function1.hpp(67) : error C2059: erreur de syntaxe : ')'
> ("syntax error")
> boost\detail\function1.hpp(67) : error C3861: 'BOOST_CONCEPT_ASSERT':
> identificateur introuvable, même avec une recherche qui dépend de
> l'argument ("identifier not found")
>
> I am using boost 1.34.1 under VC 2003. Any issue ?

Ah. The accumulators library uses a newer version of the concopt_check
library than what was in 1.34.1. In the accumulators.zip file, the
boost/backports directory contains everything you need. Be sure that
that directory is in your include path before the rest of boost.

HTH,

-- 
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