Support
C ++ 0x / C ++ 11 added only with gcc v4.3, see this page to check which C ++ function was added to which version of gcc.
Alternatively, you can use the clang ++ compiler, which also comes with Xcode. See this page for version information.
Or install gcc47 from macports
Btw, it is better to use -std=c++11 , the c++0x parameter is not supported by clang.
source share