How to compile #include <experimental/any> for clang on OSX
问题 I am trying to get the #include <experimental/any> to compile in my C++ program on clang OSX // test.cpp #include <experimental/any> int main() { return 0; } Tried following commands/options as learnt from here clang++ -std=c++14 test.cpp -o test -std=c++1z -stdlib=libc++ clang++ -std=c++1x test.cpp -o test -std=c++1z -stdlib=libc++ clang++ -std=c++1y test.cpp -o test -std=c++1z -stdlib=libc++ clang++ -std=c++1z test.cpp -o test -std=c++1z -stdlib=libc++ But it doesn't compile & complains of