I have to build a soft with XCode 4 + Base SDK 10.5 for legacy support.
It seems that I cannot turn on C++11 as detailed here (i.e. by setting "C++ Language Dialect" to "C++11" and "C++ Standard Library" to "libc++"), because when I do it, I get
clang error invalid deployment target for stdlib libc++ (requires OS 10.7 or later)
Then, as I can't load C++11 (thus, the answers of my previous question here cannot be used), how should I modify:
std::valarray<float> v(32);
std::sort(begin(v), end(v)); # Use of undeclared identifier 'begin'
std::sort(std::begin(v), std::end(v)); # No member named 'begin' in namespace 'std'
to make it work ?