I have code I wrote for MS VC ++ 10. I use C ++ 11 and, in particular, expressions like
std::function<int (int)> f =...; auto it = v.begin(); for_each(it1, it2,[&](int& i) { ++i;});
Now I am testing MacOS and Xcode with llvm & clang, and my code cannot be compiled! The question is why? Perhaps I will indicate a use case for C ++ 11. In this case, where can I fix this in xcode?
source share