[LLVMdev] Using C++'11 language features in LLVM itself

Karen Shaeffer shaeffer at neuralscape.com
Sun Jan 13 11:08:09 PST 2013

On Sun, Jan 13, 2013 at 01:18:11PM +0000, Matthieu M. wrote:
> Hello all,
> Using the Apache Wiki [1] I summed up what can be used simultaneously by gcc,
> MSVC and clang.
> gcc 4.5, MSVC 11, clang 3.1
> => main additions: atomic, lambda v1.1, r-value v2.1 [3], strongly typed enum.
> [3]: "r-value v2.1 (n2844 + core issue 1138)" is subsided by "r-value v3.0
> (n3053)" but I could not understand the gist of the differences; furthermore it
> seems no known version of MSVC implements v3.0.

IIRC, this refers to the problems with g++ 4.5 moving lvalues when the author
did not intend this to happen. Then r-value v3.0 (n3053) fixed that, requiring
explicit use of std::move() to move lvalues.

Karen Shaeffer
Neuralscape, Mountain View, CA 94040

More information about the llvm-dev mailing list