Liste des Groupes | Revenir à l c |
Bonita Montero <Bonita.Montero@gmail.com> writes:That's how 100% of all programs that deal with bad_alloc are designed.Am 09.06.2025 um 16:01 schrieb Scott Lurndal:That's your problem caused by poor design and implementation.
>Have you ever written real-world production code? Like an operating>
system, where allocation failures should -never- result in an
inability to recover.
If you need an allocation to proceed and it fails you can't recover.
Exacerbated by the propensity for you to use C++ features that requireWhen dynamic allocation is needed it is needed.
dynamic allocation where other forms of data structures are more suitable.
Les messages affichés proviennent d'usenet.