Boost logo

Boost :

Subject: Re: [boost] [Foreach] Proposal to simplify using Boost.Foreach withmaps
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-09-15 06:34:57


Pete Bartlett wrote:

>> 2) Use type deduction to avoid having to provide the type of the
>> elements altogether using auto or BOOST_AUTO.
>
> Can BOOST_AUTO be used with BOOST_FOREACH? From memory I thought it
> couldn't...

No, it cannot.
You would need to use a BOOST_FOREACH_AUTO. I have one that I find quite
practical to use.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk