Boost logo

Boost Users :

Subject: Re: [Boost-users] [Accumulators] Errors compiling the "Hello, World!" example
From: Eric Niebler (eric_at_[hidden])
Date: 2010-01-11 07:06:51


On 1/11/2010 10:45 PM, Marco Guazzone wrote:
> Just for info, in my case, to fix the problem, I had to use fully qualification:
>
> boost::accumulators::moment<2>(acc)
>
> instead of
>
> accumulators::moment<2>(acc)

Correct. You can make this easier with a namespace alias:

   namespace ba = boost::accumulators;
   ...
   ba::moment<2>(acc);

HTH,

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.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