Boost logo

Boost :

Subject: Re: [boost] [ANN] "The Boost C++ Libraries", 2nd edition available
From: Brian Wood (woodbrian77_at_[hidden])
Date: 2014-11-01 16:44:26

On Fri, 31 Oct 2014 12:14:33 +0100, Thorsten Ottosen <tottosen_at_[hidden]>

> I'm very happy to see a small chapter on ptr_container.
> It's good that you compare it with container<unique_ptr<T>>.

It looks like poly_collection is left out:

There was discussion of this container on this list back in August.

> Comment 1: I would prefer examples with unique_ptr to use make_unique.

I've compared these two lines:

auto req=::std::unique_ptr<cmw_request>(::new cmw_request(localbuf));

auto req=::std::make_unique<cmw_request>(localbuf);

On clang 3.3, the make_unique version increases the size
of an executable's text segment by 112 bytes. I think I've
tried it on a newer compiler and found similar results.

Ebenezer Enterprises - In G-d we trust.

Boost list run by bdawes at, gregod at, cpdaniel at, john at