Skip to content

Please support C++17 by default, or at least give a convenient menu option in the IDE #606

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

Closed
Ebola-Chan-bot opened this issue Nov 14, 2021 · 4 comments
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@Ebola-Chan-bot
Copy link

Is your feature request related to a problem? Please describe.
My code contains variable templates that C++11 does not support. So each time I set up Arduino IDE for a new PC/user, I'll have to go to "%AppData%\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\platform.txt" and set the "-std=gnu++17" compiler argument. Isn't C++17 fully compatible with C++11 code? Why is the old C++11 still the default?

Describe the solution you'd like
I want the C++17 argument to be the default after installation.

Describe alternatives you've considered
Or at least there should be a menu option in the IDE. It's ugly to dive into such deep directories and find a .txt configuration file to do edition.

Additional context

@Ebola-Chan-bot Ebola-Chan-bot added the type: enhancement Proposed improvement label Nov 14, 2021
@pzygielo
Copy link

It seems your issue is for arduino/Arduino (while this repo is for 2.0). I guess this one could be transferred there by maintainers.

@Ebola-Chan-bot
Copy link
Author

It seems your issue is for arduino/Arduino (while this repo is for 2.0). I guess this one could be transferred there by maintainers.

No, this is for 2.0. In 2.0 you still have to manually edit platform.txt to support C++17.

@per1234
Copy link
Contributor

per1234 commented Nov 14, 2021

Thanks for taking the time to submit an issue @Silver-Fang .

I see we already have a prior issue report about this at #430.

It's best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 closed this as completed Nov 14, 2021
@per1234 per1234 added conclusion: duplicate Has already been submitted topic: code Related to content of the project itself labels Nov 14, 2021
@pzygielo
Copy link

So it's rather https://github.com/arduino/ArduinoCore-avr then.
Just for reference - previously updated in arduino/ArduinoCore-avr@c84ff4d.

@per1234 per1234 self-assigned this Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

3 participants