C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Delete...why not a parameter by reference?!

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Sat, 23 Aug 2025 15:48:11 +0200
One can patch an open source compiler and test the feature. -----Ursprüngliche Nachricht----- Von:Simon Schröder via Std-Proposals <std-proposals_at_[hidden]> But definitely, if it can be done by a compiler flag then it does the job. I don’t think any compiler has a flag like this, but you could try for gcc or clang to implement it. Also, somebody else suggested using macros that do delete plus nullifying. This could also help gather some experience with your approach.

Received on 2025-08-23 13:59:03