[Development] The future of smart pointers in Qt API
André Pönitz
apoenitz at t-online.de
Fri Jan 31 19:57:16 CET 2020
On Fri, Jan 31, 2020 at 10:07:52AM +0000, Vitaly Fanaskov wrote:
> Another thing to discuss is whether we should use raw pointers in the
> API at all or not. There are a few options again:
>
> 1) Yes
>
> 2) No. Use “modern” approaches instead (pass mandatory dependencies by
> either reference or const reference when using smart pointers makes no
> sense, use something optional-like or tuples to return extra data from
> functions, and so on)
>
> 3) Mix 1 and 2.
>
> There are pros and cons for all options. Share your opinion once again,
> please.
1)
Andre'
More information about the Development
mailing list