Open zfields opened 8 months ago
Actually, I think that the fix is like below:
const std::nothrow_t nothrow_t {};
Can you explain that in more detail? It looks like you are defining a new empty function.
I thought the purpose of the file is to define functions in the std::
namespace.
By reading the code I understood that the intention is to get rid of writing std std all the time for nothrow, therefore, who wrote the code just made the mistake of duplicating the std word (the compiler error you saw). The way I answered you can see that is just an initialization of nothrow variable where its type is std::nothrow. Maybe it will be used somewhere else in the project but without the need of writing std::
Thanks for the quick fix. Worked like a charm.
See my fork that should have fixed this.
I'm not sure if this is the appropriate solution, but to allow an AVR project to compile correctly, I had to wrap the definition of
std::nothrow
in an#ifdef
.new_handler.cpp
Here is the compiler error for additional context: