xeo@void:~$ cat Desktop/t.cpp
#include <utility>
int main() {
char *p1 = 0, *p2 = 0;
p1 = std::move(p2);
}
xeo@void:~$ clang++ -std=c++0x Desktop/t.cpp
In file included from Desktop/t.cpp:1:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4/utility:62:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4/bits/stl_pair.h:60:
/usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4/bits/move.h:57:14: error:
rvalue reference to type 'typename std::remove_reference<char *&>::type'