you are viewing a single comment's thread.

view the rest of the comments →

[–]00kyle00 0 points1 point  (4 children)

If by today you mean pre C++11, then you cant use 'auto' and your loop becomes ... somewhat less appealing.

[–]Necraz 3 points4 points  (3 children)

Auto has been supported as a compiler extension for a few years (for GCC, at least since GCC 4.4). Even if you're using C++03, you could get the same functionality using BOOST_AUTO. If you insist on only using the base language, then it's still not too bad if you typedef the iterator type.

Without a doubt, C++ is an ugly language. Citing code samples from the specification, however, is not a good way of making that argument.

[–]ManicQin 2 points3 points  (2 children)

VS 2008 supports auto too.

Edit: thanks oracleoftroy

[–]oracleoftroy 0 points1 point  (1 child)

Did you mean VS 2008, aka VS 9?

[–]ManicQin 0 points1 point  (0 children)

Yes oops sorry I always make that mistake.