On Monday 26 August 2024 17:09:54 GMT-7 Ville Voutilainen wrote: > I would think the callee takes over the responsibility of destroying > the parameters when they have all been initialized > (so that you actually end up in the callee, duh), and before that > point the caller has to do it for cases where they don't all > construct.
In the case where one fails to construct, sure, but then the callee hasn't been called yet. My point is that in some ABIs, the callee destroys the parameters passed by value. This is an observable difference if the destructor may throw (which it may if it has a precondition). -- Thiago Macieira - thiago.macieira (AT) intel.com Principal Engineer - Intel DCAI Platform & System Engineering
smime.p7s
Description: S/MIME cryptographic signature
-- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development