Open jfjlaros opened 2 years ago
Same here!
Also #79 presents the same issue.
downgrading to arduino:avr core version 1.8.3 fixed the issue.
or as @jfjlaros states, remore / comment line 22 in ../ArduinoSTL/src/new_handler.cpp: const std::nothrow_t std::nothrow = { }; since for arduino core v1.8.5, std::nothrow, is already defined in its ../core/arduino/new.cpp file.
Was getting the same exact error.
If I open the library file ArduinoSTL/src/new_handler.cpp and comment out line 22:
// const std::nothrow_t std::nothrow = { };
It will allow my program to compile.
I'm getting the same error. The workaround posted by @rw3iss works.
same error here, fix by @rw3iss worked
same error, @rw3iss 's workaround worked.
you are right ,thanks
Même erreur ;) Merci @rw3iss
hi all,
is there going to be an official fix to this issue? i.e. a fix that does not require downgrading other libraries nor commenting out lines of code.
please advise.
thanks in advance, rey malahay
Was getting the same exact error. If I open the library file ArduinoSTL/src/new_handler.cpp and comment out line 22:
// const std::nothrow_t std::nothrow = { };
It will allow my program to compile.
If this is not needed shall we create a PR to delete it, or guarded in some conditional MACRO?
#ifdef xxx
...
#endif
I have created PR #94 to implement the suggestion made in the first post of this issue.
Was getting the same exact error. If I open the library file ArduinoSTL/src/new_handler.cpp and comment out line 22:
// const std::nothrow_t std::nothrow = { };
It will allow my program to compile.
Yep, that fixed it
See my fork that should have fixed this.
When compiling the following sketch,
this error is raised:
Commenting out line 22 of
src/new_handler.cpp
seems to fix the issue, but this perhaps introduces other problems.My set up:
This issue can be reproduced in the Wokwi simulator.