I’m having a hard time determining which C++ standard I am using when building for ESP32 and which C++ features are available.
When I run in verbose mode, I see that I am using the package:
- toolchain-xtensa32 2.50200.97 (5.2.0)
Is this what dictates the C++ compiler and standard utilized?
I know this is a very basic question, but I’ve spent many hours googling and somehow still haven’t figured out the answer. Ultimately, I have read about C++20 and the introduction of “modules”. I would like to implement this feature, but from my reading, it seems like platformIO does not yet implement the C++20 standard? I do see C++ standards referenced when the IDE highlights my errors (e.g. identifier “import” is undefined C/C++(20)). But am I right to assume that the error checking standard is separate from the actual compilation standard?