C++ Logo

std-discussion

Advanced search

Re: Making the new expression smart

From: Christopher Head <chead_at_[hidden]>
Date: Thu, 17 Sep 2020 10:08:29 -0700
On Thu, 17 Sep 2020 18:26:05 +0200
Richard Hodges via Std-Discussion <std-discussion_at_[hidden]>
wrote:

> For what it's worth, shared_ptr is move constructible from unique_ptr.

Fair point, though it still presumably loses you the
single-heap-allocation benefit of std::make_shared.
-- 
Christopher Head

Received on 2020-09-17 12:08:35