I am trying to get the #include <experimentals/any> to compile in my C++ program on clang OSX
// test.cpp
#include <experimentals/any>
int main() {
return 0;
}
Following is the command I am trying to compile as learnt from here
clang++ -std=c++14 test.cpp -o test -std=c++1z -stdlib=libc++
But it doesn't compile & complains of the following error:
fatal error: 'experimental/any' file not found
clang++ --version yields following:
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Applications/http://ift.tt/1z8WHIF
How can I get #include <experimentals/any> to compile?
Should I upgrade clang on my machine?
Is C++17 supported on clang currently as of today? If yes how can get the support for it?
Aucun commentaire:
Enregistrer un commentaire