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> |
||
|---|---|---|
| .. | ||
| cstddef | ||
| cstdint | ||
| new | ||