
15 Sep
2009
15 Sep
'09
10:34 a.m.
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.