[Effective C++ Style] RE: [Effective-cpp] Item 4: Standard library member functions

White Wolf wolof at freemail.hu
Sun Nov 7 16:01:55 EST 2004


effective-cpp-bounces at accu.org wrote:
[SNIP]
>> Or if we have auto:
>> 
>> for_each(x.begin(),x.end(),{|auto &item|item+=2};
> 
> That would be overloading a keyword - which is frowned upon
> these days.

auto is not considered to be a keyword in C++.  It is whitespace with a
different spelling. :-)

Attila





More information about the Effective-cpp mailing list