C++ Logo


Advanced search

Subject: Re: Making the new expression smart
From: Christopher Head (chead_at_[hidden])
Date: 2020-09-17 12:08:29

On Thu, 17 Sep 2020 18:26:05 +0200
Richard Hodges via Std-Discussion <std-discussion_at_[hidden]>

> 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

STD-DISCUSSION list run by std-discussion-owner@lists.isocpp.org

Older Archives on Google Groups