clang - Xcode 5.1 enable C++14 -


xcode 5.1 using clang 3.4. , clang 3.4 supports c++14.

however, i've been surfing though of xcode options , don't see way enable c++14.

i'm trying enable relaxed constexpr feature of c++14

to work, first set "c++ language dialect" "compiler default". in "other c++ flags" add "-std=c++1y".

this allow clang++ compile c++14 within xcode. tested xcode 5.1.1 using new user defined literal basic_string:

std::string word = "hello"s; 

update: of xcode 6, c++14 available first-class language dialect.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -