Skip to content

Add the <typetraits> header #5876

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
eric-wieser opened this issue Jan 19, 2017 · 5 comments
Closed

Add the <typetraits> header #5876

eric-wieser opened this issue Jan 19, 2017 · 5 comments
Labels
Architecture: AVR Applies only to the AVR microcontrollers (Uno, etc.) Component: Core Related to the code for the standard Arduino API Component: Toolchain The tools used for compilation and uploading to Arduino boards feature request A request to make an enhancement (not a bug fix) Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature

Comments

@eric-wieser
Copy link
Contributor

Since all of this part of the STL runs at compile-time, arduino being an embedded platform is not a good reason to exclude it.

In particular, things like std::remove_reference are needed to implement #5875

@cmaglie
Copy link
Member

cmaglie commented Jan 24, 2017

Why you say it's excluded? AFAIK the build of the toolchain did not exclude anything, maybe those are not implemented yet for AVR?

@eric-wieser
Copy link
Contributor Author

eric-wieser commented Jan 24, 2017

You're right, this is really a complaint against avr, not against arduino - so it wouldn't be unreasonable to close this as out of scope.

It might be nice if arduino could provide it to make up for its absence from avr though

@cmaglie
Copy link
Member

cmaglie commented Jan 24, 2017

Ok the question is then, where we can find a good implementation of them? I think that Arduino doesn't have enough resources to maintain his own implementation of the standard C++ lib.

@matthijskooijman
Copy link
Collaborator

uclibc++ has a decent implementation (also available in a few Arduino libraries), though it is incomplete (especially most of C++11 is missing). Not sure if type_traits is among it.

@cmaglie cmaglie added the Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature label Sep 16, 2019
@cmaglie
Copy link
Member

cmaglie commented Sep 16, 2019

Closing this as wontfix.

@cmaglie cmaglie closed this as completed Sep 16, 2019
@per1234 per1234 added Architecture: AVR Applies only to the AVR microcontrollers (Uno, etc.) Component: Toolchain The tools used for compilation and uploading to Arduino boards Component: Core Related to the code for the standard Arduino API feature request A request to make an enhancement (not a bug fix) labels Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Architecture: AVR Applies only to the AVR microcontrollers (Uno, etc.) Component: Core Related to the code for the standard Arduino API Component: Toolchain The tools used for compilation and uploading to Arduino boards feature request A request to make an enhancement (not a bug fix) Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature
Projects
None yet
Development

No branches or pull requests

4 participants