|
Boost Users : |
Subject: Re: [Boost-users] Boost.Accumulators: how to use with objectdatamembers?
From: Joost Kraaijeveld (J.Kraaijeveld_at_[hidden])
Date: 2009-04-12 14:19:06
Hi,
Sorry about the last post: it works OK with a member function and bind:
std::for_each(data.begin(),
data.end(),
boost::bind<void>( boost::ref(acc), boost::bind<long>(&Data::getData,_1)) );
-- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 web: www.askesis.nl
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