dimanche 27 décembre 2020

New can give exceptions other than bad_alloc

https://timsong-cpp.github.io/cppwp/n4618/diff.cpp03.language.support 18.6.1.1 Change: operator new may throw exceptions other than std::bad_alloc

Rationale: Consistent application of noexcept.

Effect on original feature: Valid C++ 2003 code that assumes that global operator new only throws std::bad_alloc may execute differently in this International Standard.

Acc. to given clause what there can be other exceptions other than std::bad_alloc, Any idea what are these exceptions?

Aucun commentaire:

Enregistrer un commentaire