LLVM&Clang support of C++11

后端 未结 2 765
别跟我提以往
别跟我提以往 2021-02-10 17:37

I have some code written by me for MS VC++10. I use C++11 and, in particular, expressions like

std::function f =...;
auto it = v.begin();
for_e         


        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-10 18:09

    You will need Xcode 4.2.

    In your build settings, search for "c++0x" and set the "C++ Language Dialect to C++0x [-std=c++0x]". Then search for "libc++" and set the "C++ Standard Library" to "libc++".

    Not all C++11 facilities are available. For example lambdas are not yet supported.

提交回复
热议问题