How to enable C++17 on Mac?
On my 10.11 El Capitan, Xcode 7.3.1, clang has been updated to: Apple LLVM version 7.3.0 (clang-703.0.31) which is almost equivalent to llvm version 3.8. clang++ hasn’t -std=c++17 option, but -std=c++1z, working well at present, though only supporting some features of C++1z. For gcc, you can install a very new one by: brew install gcc … Read more