C++ Logo

sg20

Advanced search

Re: [SG20] Invitation to SG20 telecon May 8

From: rhkramer_at <rhkramer_at_[hidden]>
Date: Wed, 6 May 2020 15:24:07 -0400
On Wednesday, May 06, 2020 11:37:57 AM Peter Sommerlad (C++) via SG20 wrote:
> I will not be able to attend, but IMHO: "Copy or copy not, there is no
> shallow" (Tony van Eerd)
>
> C++ done right has now shallow copy and doing so, is usually wrong and
> leads to leakage or breaking. shared_ptr is evil! (I learned that the
> hard way...)
>
> Just my 2 black horses from CH.
>
> Peter.
>
> JC van Winkel via SG20 wrote on 06.05.20 14:58:
> > Just a reminder that the telecon will be this Friday.
> > Florian Sattler requested to also put "Should we refer to deep/shallow
> > copy in the copy semantics topic." on the agenda.
> >
> > I hope to see many on the call on Friday!

From the peanut gallery: I think that if such a thing as shallow vs. deep
copies exists (which it does, iiuc), then, at the very least it should be
mentioned in the copy semantics topic, ideally with a pointer to a place that
provides a good explanation. (It is presumably a pitfall, so there should be
a warning...)

Received on 2020-05-06 14:27:10