Groups | Search | Server Info | Login | Register
Groups > comp.lang.c++ > #41524
| Path | csiph.com!weretis.net!feeder6.news.weretis.net!news.glorb.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail |
|---|---|
| NNTP-Posting-Date | Tue, 15 Mar 2016 08:50:04 -0500 |
| Return-Path | <cppmods@glengoyne.dreamhost.com> |
| Sender | lang-cpp-request@vandevoorde.com |
| Approved | c.l.c.m@bazarov.com |
| Message-ID | <87y49mhn3b.fsf@gmail.com> (permalink) |
| Newsgroups | comp.lang.c++, comp.lang.c++.moderated |
| From | Gareth Owen <gwowen@googlemail.com> |
| Subject | Re: C++ exceptions are broken. |
| Organization | unknown |
| References | <wuCdnSxusZPATkDLnZ2dnUU7-VlQAAAA@giganews.com> <20160308184714.bdb1e8f73fd1db86e9c83dc9@speakeasy.net> <NN-dnVoIWp4b-XnLnZ2dnUU7-WVj4p2d@giganews.com> |
| Content-Type | text/plain |
| X-Original-Date | Sun, 13 Mar 2016 07:08:08 +0000 |
| X-Submission-Address | lang-cpp-submit@vandevoorde.com |
| Date | Tue, 15 Mar 2016 08:44:44 CST |
| Lines | 15 |
| X-Usenet-Provider | http://www.giganews.com |
| X-Trace | sv3-epo4k95IR0j7pjMcQpHHmyDIzVapYC5aobQGb5RkulWbCXwdh03excBUvfCWDIVm0vDuL4jaUg7R+Ae!BEL+DN+V4aLPan0hbBxIrsqJO10IL+sYMHx929/O5w9UICLq |
| X-Complaints-To | abuse@giganews.com |
| X-DMCA-Notifications | http://www.giganews.com/info/dmca.html |
| X-Abuse-and-DMCA-Info | Please be sure to forward a copy of ALL headers |
| X-Abuse-and-DMCA-Info | Otherwise we will be unable to process your complaint properly |
| X-Postfilter | 1.3.40 |
| X-Original-Bytes | 1797 |
| X-Received-Bytes | 1909 |
| X-Received-Body-CRC | 1005813455 |
| Xref | csiph.com comp.lang.c++:41524 comp.lang.c++.moderated:7406 |
Cross-posted to 2 groups.
Show key headers only | View raw
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> writes:
> std::string object is created for the exception message which can
> cause std::bad_alloc (a std::runtime_error exception) to be thrown
> replacing the originally intended exception.
std::bad_alloc is not a runtime_error (needing a string constructor
would be particularly idiotic for bad_alloc), but the point still holds.
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar
C++ exceptions are broken. Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-03-08 06:31 -0600
Re: C++ exceptions are broken. woodbrian77@gmail.com - 2016-03-08 07:10 -0800
Re: C++ exceptions are broken. scott@slp53.sl.home (Scott Lurndal) - 2016-03-08 17:26 +0000
Re: C++ exceptions are broken. "James K. Lowden" <jklowden@speakeasy.net> - 2016-03-09 08:25 -0600
Re: C++ exceptions are broken. Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-03-12 19:11 +0000
Re: C++ exceptions are broken. Öö Tiib <ootiib@hot.ee> - 2016-03-12 15:05 -0800
Re: C++ exceptions are broken. Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2016-03-12 14:46 -0600
Re: C++ exceptions are broken. Hergen Lehmann <hlehmann.expires.5-11@snafu.de> - 2016-03-12 16:50 -0600
Re: C++ exceptions are broken. "James K. Lowden" <jklowden@speakeasy.net> - 2016-03-13 15:55 -0600
Re: C++ exceptions are broken. Gareth Owen <gwowen@googlemail.com> - 2016-03-15 08:45 -0600
Re: C++ exceptions are broken. Bo Persson <bop@gmb.dk> - 2016-03-15 12:22 -0600
Re: C++ exceptions are broken. woodbrian77@gmail.com - 2016-03-15 11:28 -0700
Re: C++ exceptions are broken. "Alf P. Steinbach" <alf.p.steinbach+usenet@googlemail.com> - 2016-03-17 06:43 -0600
Re: C++ exceptions are broken. Paavo Helde <myfirstname@osa.pri.ee> - 2016-03-17 06:43 -0600
Re: C++ exceptions are broken. Gareth Owen <gwowen@googlemail.com> - 2016-03-15 08:44 -0600
csiph-web