C++ subsystem defines exception throwing operator new. Though the implementation never throws an exception. If used by an application it should verify if requested memory was allocated. This is against C++ standard. If an application does not support exceptions or does not want to call throwing new operator, it should use a specialization of a new operator that makes sure it never throws bad_alloc exception. The cpp subsystem does not provide this specialization. The commit adds missing operator new specializations. Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| include | ||
| CMakeLists.txt | ||
| cpp_ctors.c | ||
| cpp_dtors.c | ||
| cpp_init_array.c | ||
| cpp_init.c | ||
| cpp_new.cpp | ||
| cpp_virtual.c | ||
| cpp_vtable.cpp | ||
| Kconfig | ||