<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 12:28 PM, Óscar Fuentes wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Larry Evans <<a href="mailto:cppljevans@suddenlink.net">cppljevans@suddenlink.net</a>> writes:<br><br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">How do I get the attached to compile without the<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">following error about no std::move?<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">/home/evansl/download/llvm/svn/build/Debug+Asserts/bin/clang++ -c<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">-std=c++0x -U__GXX_EXPERIMENTAL_CXX0X__ -c -std=c++0x move.cpp<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">move.cpp:6:16: error: no member named 'move' in namespace 'std'<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">   int j=std::move(i);<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">         ~~~~~^<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I suggest following the preprocessor logic to see what std::move isn't<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">getting defined. That -U__GXX_EXPERIMENTAL_CXX0X__ looks really, really<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">suspicious, though.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The -U is there because, without it, the errors begin with:<br></blockquote><br>-U__GXX_EXPERIMENTAL_CXX0X__ is for disabling C++0X features on<br>libstdc++. std::move is a C++0X feature.<br></div></blockquote><div><br></div><div>But the whole point of this thread is testing Clang's C++0x features with libstdc++ in C++0x mode! We don't learn anything by turning off these features in the library.</div></div><br><div><span class="Apple-tab-span" style="white-space:pre">       </span>- Doug</div></body></html>