-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
support for notrow #47
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
Labels
Comments
matthijskooijman
added a commit
to matthijskooijman/ArduinoCore-avr
that referenced
this issue
Sep 17, 2020
This makes this header complete up to including C++14, except two exception classes that cannot be defined without `<exception>`. The functions related to the "new_handler" are declared but not actually defined, to prevent overhead and complexity. They are still declared to allow implementing them in user code if needed. This makes the implementation of all operator new and delete functions comply with the C++11/C++14 specification in terms of which should be actually implemented and which should be delegate to other functions. There are still some areas where these implementations are not entirely standards-compliant, which will be fixed in subsequent commits. This fixes part of arduino#287 and fixes arduino#47.
matthijskooijman
added a commit
to matthijskooijman/ArduinoCore-avr
that referenced
this issue
Sep 17, 2020
This makes this header complete up to including C++14, except two exception classes that cannot be defined without `<exception>`. The functions related to the "new_handler" are declared but not actually defined, to prevent overhead and complexity. They are still declared to allow implementing them in user code if needed. This makes the implementation of all operator new and delete functions comply with the C++11/C++14 specification in terms of which should be actually implemented and which should be delegate to other functions. There are still some areas where these implementations are not entirely standards-compliant, which will be fixed in subsequent commits. This fixes part of arduino#287 and fixes arduino#47.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://www.cplusplus.com/reference/new/nothrow/
AFAIK the arduino core doesn't really support new/delete (it just call malloc/free): https://github.com/arduino/ArduinoCore-avr/blob/master/cores/arduino/new.cpp
so i guess that supporting the notrow is not feasible yet
The text was updated successfully, but these errors were encountered: