Boost Users :
Subject: [Boost-users] accumulators doc typo?
From: Olaf Peter (ope-devel_at_[hidden])
Date: 2011-07-06 07:40:09
in the example of section 'Droppable Accumulators' one can read
// This will display "6 2 3"
std::cout << sum(acc) << ' '
<< count(acc) << ' '
The text below says 'Note that at the point at which mean is dropped,
sum is 3, count is 2, and therefore mean is 1.5'. After calculating my
result is also 1.5 - the comment in the example isn't correct, isn't it?
Probably the typo is in the upcoming release 1.47 too.
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