|
Boost : |
From: Matt Hurd (matt.hurd_at_[hidden])
Date: 2004-12-19 01:29:07
>Eric Niebler <eric_at_[hidden]> wrote:
>
> BOOST_FOREACH is a macro which makes it simple to iterate over a...
<snip>
Just wanted to say thanks. I grepped my current project and, even
though I'm macro averse, I noticed that I use BOOST_FOREACH a lot now.
Your current version plugged right in with no problems.
It makes code like:
// normalise
BOOST_FOREACH( double & w, weight_ )
{
w /= min_w;
}
much easier and clearer.
Thanks,
Matt.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk