Archive

Archive for 24.05.2011

Tip of the Day

Hi there! From tomorrow, I’ll be posting daily “Tip of the Day” posts. They’ll contain links or little pieces of information I think you might find useful. Enjoy!

Categories: News

The C++0x auto keyword

24.05.2011 9 comments

You know the C++ auto keyword? The somewhat pointless one which is the default storage specifier anyway? Well in C++0x, the keyword has been re-purposed and now serves a more useful role!

(Remember, this is a feature of the upcoming standard, so it won’t necessary be widely supported yet. However, I have successfully compiled all the code below – apart from bits specifically designed to create errors – in both MSVC and MinGW.)

Consider the following code. Read more…

Follow

Get every new post delivered to your Inbox.

Join 40 other followers