Date: Fri, 6 May 2022 09:22:59 +0100
On Fri, 6 May 2022 at 08:39, organicoman via Std-Proposals <
std-proposals_at_[hidden]> wrote:
> What about non trivial struct, which free resources by calling its
> destructor?
>
The resource leaks. But that's fully defined behavior; you can accomplish
the same by an unpaired resource acquisition: int main() { new int; } is a
perfectly valid program.
std-proposals_at_[hidden]> wrote:
> What about non trivial struct, which free resources by calling its
> destructor?
>
The resource leaks. But that's fully defined behavior; you can accomplish
the same by an unpaired resource acquisition: int main() { new int; } is a
perfectly valid program.
Received on 2022-05-06 08:23:11