C++ Logo

STD-PROPOSALS

Advanced search

Subject: [std-proposals] New way to declare smart pointers
From: Aymeric Pellé (aymeric.pelle_at_[hidden])
Date: 2019-10-23 07:29:45


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 list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups