Path: csiph.com!news.swapon.de!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: recovering from std::bad_alloc in std::string reserve Date: Thu, 27 May 2021 19:54:54 -0700 Organization: None to speak of Lines: 20 Message-ID: <87fsy7zhxd.fsf@nosuchdomain.example.com> References: <_CUrI.452334$ST2.205157@fx47.iad> <87sg27zu0i.fsf@nosuchdomain.example.com> <87o8cvzsux.fsf@nosuchdomain.example.com> <87k0njzq45.fsf@nosuchdomain.example.com> <664dd958-6042-4d5d-951c-191b0e26421dn@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: reader02.eternal-september.org; posting-host="1458d77179aa98232e45e826606b1dc8"; logging-data="16178"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+/M8au93C8pWkwAYfmQ/SX" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cancel-Lock: sha1:2zSXDI8J+Ujz0WT0Byho/KSvEZ8= sha1:G1wfcV9mfIHZCM/4nUAZ5JLj0M0= Xref: csiph.com comp.lang.c++:79832 Öö Tiib writes: > On Friday, 28 May 2021 at 02:58:18 UTC+3, Keith Thompson wrote: >> In fact C doesn't define a type for representing file sizes. >> (It might be nice if it did.) > > Or may be it might be nice if it did take it back from C++ where > std::filesystem::file_size() is of type std::uintmax_t. Quite right. I post in comp.lang.c more than in comp.lang.c++ and I forgot where I was. Apologies for any confusion. > Also standard should end the woo allowing implementations to > have integers that are not integers. It is awful. Not sure what you're referring to here. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips Healthcare void Void(void) { Void(); } /* The recursive call of the void */