
17 Dec
2010
17 Dec
'10
11:42 a.m.
On 17.12.2010 05:57, Michel MORIN wrote:
Hi,
C++0x range-based for is available on GCC 4.6 (Pre-release). There is no BOOST_NO_RANGE_BASED_FOR macro, so I made a patch against trunk and made a test case. Please see attached files. Is it reasonable to add this macro? I don't think there's really a point, unless you want Boost's users to use the config macros. Range-based for is a convenience functionality, not an enabling functionality. In other words, if you can't use it all the time, but have to write the long form anyway, what's the point in using it?
Sebastian