code typo in R.20 (#1619)

This commit is contained in:
Yaro Shkvorets 2020-05-06 08:41:10 -04:00 committed by GitHub
parent 986402298a
commit 97797870ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9494,8 +9494,8 @@ Consider:
{
X x;
X* p1 { new X }; // see also ???
unique_ptr<T> p2 { new X }; // unique ownership; see also ???
shared_ptr<T> p3 { new X }; // shared ownership; see also ???
unique_ptr<X> p2 { new X }; // unique ownership; see also ???
shared_ptr<X> p3 { new X }; // shared ownership; see also ???
auto p4 = make_unique<X>(); // unique_ownership, preferable to the explicit use "new"
auto p5 = make_shared<X>(); // shared ownership, preferable to the explicit use "new"
}