make_shared underused

Miklos Vajna vmiklos at
Mon Oct 26 08:10:44 PDT 2015

On Mon, Oct 26, 2015 at 10:32:02AM -0400, Ashod Nakashian <ashnakash at> wrote:
> Is this an unintentional coincidence that we're encouraged to cleanup, or
> is there a policy as-such?

I don't think it's intentional that std::make_shared is under-used.
Before introducing new calls to boost::make_shared, it's a good idea to
check if you can first convert that boost::shared_ptr to std::shared_ptr
first, and then use std::make_shared, though.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <>

More information about the LibreOffice mailing list