c++ - Is it possible to use std::make_unique in Xcode 5.1? -
since xcode 5.1 includes clang 3.4, should possible use std::make_unique
. seems defined in memory.h
.
however, needs have _libcpp_std_ver > 11
still set 11 because of value of __cplusplus
macro (still 201103l
).
is there way change this?
as specified in clang website, need enable -std=c++1y
.
xcode not include option choice in "c++ language version" option, need manually enter it. this, need go "editor" menu while project definition open , press "show definitions". should able manually change "c++ language dialect" option c++1y
:
Comments
Post a Comment