Managed C++0x?

C++ is getting an upgrade one of these days. Herb Sutter is on the committee that’s doing the work, and he’s posted the highlights of the most recent standards committee meeting.

My favourite is Auto type deduction.

This means being able to simply use “auto” as the type when the compiler is perfectly capable of inferring the type. For example:

auto mylist = new std::list();

Without the auto keyword, you’d be typing “std::list” twice.

Since Herb works for Microsoft there’s little doubt this will end up as part of the next iteration of Managed C++.