[cfe-dev] Using C++'11 in llvm/clang itself

dag at cray.com dag at cray.com
Fri Jan 11 12:28:30 PST 2013


Matthieu Monrocq <matthieu.monrocq at gmail.com> writes:

> If we move the bar a little higher: gcc 4.6, MSVC 11 (not CRT nov' 12)
> and clang 3.1, we add some features.
>
> - atomic (n2427) / requires MSVC 11
> - forward enum (n2764) / requires gcc 4.6, MSVC 11
> - nullptr (n2431) / requires gcc 4.6
> - strongly-typed enums (n2347) / requires MSVC 11
> - range-based for (n2930) / requires gcc 4.6, MSVC 11

>From your extract it looks like MSVC 11 would also add:

- decltype (but for gcc not v1.1 - what is that?)

And MSVC 11.0v2 (I don't know what that is)
would add:

- variadic templates
- initializer lists
- explicit conversions
- raw string literals
- r-value v3.0 (I don't know what that is)

decltype is useful, particularly with the new function declaration
syntax.  variadic templates are tremendously useful anmd really cut down
on code bloat.  Things like the CommandLine library could _really_
shrink in size with variadic templates.

                                 -David



More information about the cfe-dev mailing list