Article View: comp.lang.c++
Article #1022Re: A better experimental::scope_exit
From: Bonita Montero
Date: Tue, 24 Nov 2026 14:01
Date: Tue, 24 Nov 2026 14:01
25 lines
2467 bytes
2467 bytes
Am 24.11.2026 um 13:42 schrieb Tristan Wibberley: > Of course it wasn't so until C++14 when the preset mode was changed from > noexcept(false) to noexcept(true) (was it C++14?), and before C++11 > there wasn't even a way to change it /from/ noexcept(false). It wasn't handled differently with any C++-version, meaning that destructors that throw exceptions are nearly no existing. > So I think it's really common. It's dangerous: If an exception occurs while unwinding the stack of a function the unwinding continues and when it is finished the exception is propagated upwards. But if you have a second exception while this unwinding happens the application is terminated. > A unix workstation multi-process application exhibits the most ordinary > behaviours around success, failure, and cleanup when relying on that > feature (which probably explains why it was the only easy way to do > things in C++ until C++11 and was the default until C++14. Show me some libs that have a noexcept( false ) destructor. Rest unread.
Technical Details
Message-ID:
<11e45ce$2s6qc$1@raubtier-asyl.eternal-september.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mailReferences:
<11dsk17$8ske$2@raubtier-asyl.eternal-september.org> <11e2kpl$2cc7p$1@dont-email.me> <11e39t7$2ia0c$1@raubtier-asyl.eternal-september.org> <11e40mr$2qdb1$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail From: Bonita Montero <Bonita.Montero@gmail.com> Newsgroups: comp.lang.c++ Subject: Re: A better experimental::scope_exit Date: Tue, 24 Nov 2026 15:01:50 +0100 Organization: A noiseless patient Spider Lines: 25 Message-ID: <11e45ce$2s6qc$1@raubtier-asyl.eternal-september.org> References: <11dsk17$8ske$2@raubtier-asyl.eternal-september.org> <11e2kpl$2cc7p$1@dont-email.me> <11e39t7$2ia0c$1@raubtier-asyl.eternal-september.org> <11e40mr$2qdb1$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 24 Nov 2026 14:01:50 +0000 (UTC) Injection-Info: raubtier-asyl.eternal-september.org; logging-data="3021644"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19w+mFZvOHvN//PWLw0+N7uOxN6LQZSGGI="; posting-host="ca1abd9352a386a60f2eda7d3d1dd128" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:PF+D5qmKJn1tHkVxfJc4f6SBFUs= sha256:Or6+oWUfPPqCa8WtHupY0ucwvqFdy2HSme88R7NoZ6o= sha1:k+KxWGF+bUT8kNJ5K3wqJrCGhQ8= sha256:AV5KS7+MYPKDkq1wsdVRvPhq1oT2nlY8Rq7+qkdG1Xc= In-Reply-To: <11e40mr$2qdb1$1@dont-email.me> Content-Language: de-DE