Skip to content
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

Change std::functional guards from platform-based to language version-based #58

Open
KayMD opened this issue Sep 18, 2023 · 1 comment
Assignees

Comments

@KayMD
Copy link

KayMD commented Sep 18, 2023

Currently, support for std::functional is gated by #if defined(ARDUINO_ARCH_ESP32) || defined(ESP8266)

This could be changed to #if __cplusplus >= 201103L to include other platforms that support <functional> such as Teensy.

@KayMD
Copy link
Author

KayMD commented Sep 18, 2023

Could also check the header guard for , such as _GLIBCXX_STD_FUNCTION_H for GCC, but then it gets compiler-dependent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants