[cfe-dev] New C++0x feature support in Clang
Douglas Gregor
dgregor at apple.com
Fri Feb 4 13:27:53 PST 2011
On Feb 4, 2011, at 12:28 PM, Óscar Fuentes wrote:
> Larry Evans <cppljevans at suddenlink.net> writes:
>
>>>> How do I get the attached to compile without the
>>>> following error about no std::move?
>>>>
>>>> /home/evansl/download/llvm/svn/build/Debug+Asserts/bin/clang++ -c
>>>> -std=c++0x -U__GXX_EXPERIMENTAL_CXX0X__ -c -std=c++0x move.cpp
>>>> move.cpp:6:16: error: no member named 'move' in namespace 'std'
>>>> int j=std::move(i);
>>>> ~~~~~^
>>>
>>> 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.
>>
>> The -U is there because, without it, the errors begin with:
>
> -U__GXX_EXPERIMENTAL_CXX0X__ is for disabling C++0X features on
> libstdc++. std::move is a C++0X feature.
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.
- Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110204/04ec9f29/attachment.html>
More information about the cfe-dev
mailing list