Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #70131
| Path | csiph.com!tncsrv06.tnetconsulting.net!news.uzoreto.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Ian Collins <ian-news@hotmail.com> |
| Newsgroups | comp.lang.c++ |
| Subject | Re: Where are the exception-objects allocated? |
| Date | Thu, 14 Nov 2019 20:11:26 +1300 |
| Lines | 30 |
| Message-ID | <h34d0vF4cl5U11@mid.individual.net> (permalink) |
| References | <qqhcq2$ked$1@news.albasani.net> <3003e593-126c-4374-ad9f-f3f42e9c10b4@googlegroups.com> <qqhi0t$7fr$2@news.albasani.net> <9dbeef35-8d24-4e17-bfdd-f50a1ec1b78f@googlegroups.com> <H%YyF.60106$kt1.41492@fx46.iad> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net WtZLzjiafYcTy4qiS121nw9kvQcHxHBKlevLL6qOPLsMVeyumV |
| Cancel-Lock | sha1:ZsNDIM37LW0M5nWQFQBn2l7kcgE= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
| In-Reply-To | <H%YyF.60106$kt1.41492@fx46.iad> |
| Content-Language | en-US |
| Xref | csiph.com comp.lang.c++:70131 |
Show key headers only | View raw
On 14/11/2019 08:41, Scott Lurndal wrote: > James Kuyper <jameskuyper@alumni.caltech.edu> writes: >> On Wednesday, November 13, 2019 at 1:28:54 PM UTC-5, Bonita Montero wrote: >>>>> Can anyone tell me what would be a proper way to allocate storage >>>>> for an exception-object being thrown without causing that this >>>>> allocation might fail? And remember that these objects even have >>>>> to live longer than a thread because you might refer to it by >>>>> an std::exception_ptr. >>> =20 >>>> Exception objects are not created by user code; they are temporary >>>> objects created by the implementation, copy-initialized by the >>>> expression passed to the throw expression. It is unspecified how the >>>> implementation allocates the storage that they are stored in. ... >>> =20 >>> I know that this is unspecified. >>> But I'm interested how this is actually implemented. >> >> Then you need to be specific about which implementations you're most intere= >> sted in. For best results, you should ask in forums that are specific to th= >> ose implementations. Those kinds of details are not widely known, because o= >> rdinary developers have no need to know them, so the people who do know suc= >> h details are far easier to find in such specialized forums, rather than in= >> this one. > > Or BM could simply download the compiler sources and figure it out. Rude trolls don't do that.. -- Ian.
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Where are the exception-objects allocated? Bonita Montero <Bonita.Montero@gmail.com> - 2019-11-13 17:59 +0100
Re: Where are the exception-objects allocated? Öö Tiib <ootiib@hot.ee> - 2019-11-13 10:10 -0800
Re: Where are the exception-objects allocated? Bonita Montero <Bonita.Montero@gmail.com> - 2019-11-13 19:14 +0100
Re: Where are the exception-objects allocated? Öö Tiib <ootiib@hot.ee> - 2019-11-13 10:24 -0800
Re: Where are the exception-objects allocated? Bonita Montero <Bonita.Montero@gmail.com> - 2019-11-13 19:27 +0100
Re: Where are the exception-objects allocated? Öö Tiib <ootiib@hot.ee> - 2019-11-13 10:40 -0800
Re: Where are the exception-objects allocated? Bonita Montero <Bonita.Montero@gmail.com> - 2019-11-13 19:44 +0100
Re: Where are the exception-objects allocated? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2019-11-13 21:58 -0800
Re: Where are the exception-objects allocated? James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-11-13 10:18 -0800
Re: Where are the exception-objects allocated? Bonita Montero <Bonita.Montero@gmail.com> - 2019-11-13 19:28 +0100
Re: Where are the exception-objects allocated? James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-11-13 10:44 -0800
Re: Where are the exception-objects allocated? Bonita Montero <Bonita.Montero@gmail.com> - 2019-11-13 19:46 +0100
Re: Where are the exception-objects allocated? Bonita Montero <Bonita.Montero@gmail.com> - 2019-11-13 20:06 +0100
Re: Where are the exception-objects allocated? Öö Tiib <ootiib@hot.ee> - 2019-11-13 11:36 -0800
Re: Where are the exception-objects allocated? scott@slp53.sl.home (Scott Lurndal) - 2019-11-13 19:41 +0000
Re: Where are the exception-objects allocated? Ian Collins <ian-news@hotmail.com> - 2019-11-14 20:11 +1300
Re: Where are the exception-objects allocated? "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-11-14 12:42 +0100
Re: Where are the exception-objects allocated? Bonita Montero <Bonita.Montero@gmail.com> - 2019-11-14 13:07 +0100
csiph-web