问问题
12616 次
3 回答
15
To get g++ into C++11 (or C++0x) mode, you have to add the command-line parameter -std=c++0x
on versions <= 4.6, nowadays you can also use -std=c++11
.
于 2011-08-31T00:26:03.643 回答
1
You are using the most recent Visual Studio, but not the most recent GCC. The std::move capability is available in the most recent GCC. It is a new feature of C++11.
于 2011-08-31T00:24:45.500 回答
-1
You can't use std::move
because your compiler does not support c++11.
于 2011-08-31T00:25:49.493 回答