C++ Logo

std-proposals

Advanced search

Re: New way to declare smart pointers

From: Dmitry <dimanne_at_[hidden]>
Date: Wed, 23 Oct 2019 14:30:15 +0100
Are you going to make compiler know about std::? Or how will they (those
one-letter suffices) work?

On Wed, 23 Oct 2019, 13:30 Aymeric Pellé via Std-Proposals, <
std-proposals_at_[hidden]> wrote:

> Hello,
>
> This proposal aims to ease the basic use of smart pointers.
>
> The following declarations:
>
> T*s ptr;
> T*u ptr;
> T*w ptr;
>
> would be equivalent to this ones:
>
> std::shared_ptr<T> ptr;
> std::unique_ptr<T> ptr;
> std::weak_ptr<T> ptr;
>
> What do you think about it?
>
> Regards,
> Aymeric Pellé
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>

Received on 2019-10-23 08:32:42