C++ Logo

STD-PROPOSALS

Advanced search

Subject: Re: [std-proposals] New way to declare smart pointers
From: Dmitry (dimanne_at_[hidden])
Date: 2019-10-23 08:30:15


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
>



STD-PROPOSALS list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups