Article View: comp.lang.c++
Article #1092Re: A better experimental::scope_exit
From: Tristan Wibberley
Date: Wed, 02 Dec 2026 18:59
Date: Wed, 02 Dec 2026 18:59
29 lines
2617 bytes
2617 bytes
On 22/11/2026 17:34, Bonita Montero wrote: ... > defer( Fn fn, Dependent *pDep = (Dependent *)nullptr ) : ... I woke with a start this morning when I dreamed of that code! experimental::defer desperately needs "explicit"! I strongly recommend adding "explicit" to every constructor and /only/ removing it with a good case. Then, whenever a constructor declaration changes add explicit back in and review it again for a good case to remove it. That's because of implicit conversion which is rarely a good idea, especially for experimental::defer. -- Tristan Wibberley The message body is Copyright (C) 2026 Tristan Wibberley except citations and quotations noted. All Rights Reserved except that you may, of course, cite it academically giving credit to me, distribute it verbatim as part of a usenet system or its archives, and use it to promote my greatness and general superiority without misrepresentation of my opinions other than my opinion of my greatness and general superiority which you _may_ misrepresent. You definitely MAY NOT train any production AI system with it but you may train experimental AI that will only be used for evaluation of the AI methods it implements.
Technical Details
Message-ID:
<11eppqe$3db0e$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11dsk17$8ske$2@raubtier-asyl.eternal-september.org> <11dv92a$15erm$1@raubtier-asyl.eternal-september.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk> Newsgroups: comp.lang.c++ Subject: Re: A better experimental::scope_exit Date: Wed, 2 Dec 2026 18:59:26 +0000 Organization: A noiseless patient Spider Lines: 29 Message-ID: <11eppqe$3db0e$1@dont-email.me> References: <11dsk17$8ske$2@raubtier-asyl.eternal-september.org> <11dv92a$15erm$1@raubtier-asyl.eternal-september.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 02 Dec 2026 18:59:27 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3582990"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/aIAryHbro+Gz0JyMNMkWfdfPiJGIzvRqtMRm9byNplg=="; posting-host="32b5c3263f4da7d036805a857de019db" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:bOr7kd37yY6QlIKjOLP3XSsl0t4= sha256:Y8kNyd9tnNX3Oe/i5pWuVWzAgkCEX8EjCuQXzSxm8AM= sha1:MHlTcGaPytTcMYdy3TtQ8pHJyzc= sha256:nlDmUKssrYQ+nwmWsYLQ7k/kEtJahwlpZMCNDi0zV6o= In-Reply-To: <11dv92a$15erm$1@raubtier-asyl.eternal-september.org> Content-Language: en-GB