-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Does v3.0.0 support std::variant and other RTTI-dependent features? #9370
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
Comments
@me-no-dev Can you please help with triage? Thanks |
No, it is not enabled by default. Can be seen here https://github.com/espressif/esp32-arduino-libs/blob/idf-release/v5.1/esp32/platformio-build.py |
So |
yes, but you can enable rtti with |
For the Arduino IDE it would be necessary to change the
These are the default extra flags settings from ESP32 Arduino
|
Is there any reason as to why this feature is not supported by default? |
There is no particular reason apart from not being enabled by default in IDF and you being the first to request it for the last 8 years :) we will assess any performance/size consequences of enabling it (there are some) and will enable it if everything is OK. Can not give you timeframe, because we need to improve our tooling a bit first |
Should a separate issue for adding default support of RTTI be opened? If so, should it be opened in the IDF repo or this repo? |
This issue will be tracked for Arduino Core 3.0.1. All set. |
Increases flash size with 2-7KB depending on chip and features. |
Hello, after discussion we agreed that we will not implement this. Above mentioned PR have been closed, I am closing this ticket as wont do. |
Related area
language features
Hardware specification
N/A
Is your feature request related to a problem?
I am making a JSON-related programme and would likely be using std::variant and other RTTI-related features. I would like to know if RTTI is enabled by default in v3.0.3. Thank you.
Describe the solution you'd like
Would be great of it is enabled by default.
Describe alternatives you've considered
No response
Additional context
No response
I have checked existing list of Feature requests and the Contribution Guide
The text was updated successfully, but these errors were encountered: