-
-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discussion: Adding C++14/17 support with -std=c++1z #1134
Comments
@tius2000 It would be great to use C++14/17 features as long as the GCC xtensa compiler supports them. Please, create a new PR and so that we can review it and evaluate it(compiled code size, performance and resource usage(esp. memory), etc. |
I would love it |
Current situation seems to be that C++14 and C++1z (17) work on all arches except Linux Esp8266 compiler, so we're stuck with C++11 for now. Haven't tried the Arduino compilers, they're probably more up to date. |
Sming install provides Windows MinGW with GCC 6.3, Linux gets GCC 4.8. Some impressive work has been done with the I've tried the pre-release for Linux which includes GCC 9.1.0: https://github.com/earlephilhower/esp-quick-toolchain/releases/tag/3.0.0-gnu1 Sming requires patching to compile, see #1825 |
The other thing the new toolchains offer is support for C++ exception handling. The Arduino framework offers this as an option, so we can do the same for those as wish to use it. |
See #1825. |
Would it be a good idea to allow some of the newer language features or are there reasons to stick with C++11? The only issue I found so far is that you need to add a missing function to esp_plusplus.cpp:
The text was updated successfully, but these errors were encountered: