This is more of a question than an issue.
I am trying to run ./em++ -g -std=c++17 test.cpp, but emscripten doesn't appear to know about c++17. Are there any plans for this, or a workaround?
Emscripten's C++ support tracks with the version of clang and libcxx that it uses. You can see the feature matrix here: https://clang.llvm.org/cxx_status.html Currently fastcomp is at clang 4.0. 5.0 just branched so maybe someone will update fastcomp sometime soon (for WebAssembly there is also the upstream LLVM, which tracks LLVM's trunk, if you want to live on the edge). For C++17 specifically, you can use the -std=c++1z option instead of -std=c++17 because the standard is not fully finalized (or was not as of clang 4.0)
Thank you; -std=c++1z provides the c++17 features I needed.
So is it support C++17 fully now? @dschuff
So is it support C++17 fully now? @dschuff
oooh, i see.
Yes. Fastcomp is now on clang 6.0 and apparently "Clang 5 and later implement all the features of the ISO C++ 2017 standard."
Most helpful comment
Thank you;
-std=c++1zprovides the c++17 features I needed.