<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Feb 4, 2011, at 11:33 AM, Larry Evans wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 01/26/11 15:45, Douglas Gregor wrote:<br><blockquote type="cite">Clang has recently gotten much-improved support for the upcoming C++0x standard. In particular, top-of-tree Clang now supports a number of C++0x features:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">   </span>- Rvalue references (including rvalue references for *this)<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">    </span>- Variadic templates<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">   </span>- Inline namespaces<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">    </span>- Late-specified return types<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">  </span>- Decltype<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">You can turn on C++0x support with the -std=gnu++0x (or, if you want to be more pedantic, -std=c++0x).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Give it a spin, write some tests, try it out with libc++, and tell us how it went! And if you get the itch to hack on Clang, there are a ton of other little C++0x features that you could implement.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>Cheers,<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>Doug<br></blockquote><br>How do I get the attached to compile without the<br>following error about no std::move?<br><br>/home/evansl/download/llvm/svn/build/Debug+Asserts/bin/clang++ -c<br>-std=c++0x -U__GXX_EXPERIMENTAL_CXX0X__ -c -std=c++0x move.cpp<br>move.cpp:6:16: error: no member named 'move' in namespace 'std'<br>    int j=std::move(i);<br>          ~~~~~^<br></div></blockquote><br></div><div>I suggest following the preprocessor logic to see what std::move isn't getting defined. That -U__GXX_EXPERIMENTAL_CXX0X__ looks really, really suspicious, though.</div><br><div><span class="Apple-tab-span" style="white-space:pre">  </span>- Doug</div></body></html>