Boost logo

Boost :

Subject: Re: [boost] Proposal: Linear map
From: Amir Ansari (amir.ansari80_at_[hidden])
Date: 2012-07-18 11:01:09

>> 2. Is there some specialization for flat_set with the same semantics as
>> ptr_vector ?

>I'm not sure I understand. Do you intend to store pointers in flat_set? If so,
>you can store std::unique_ptr's or shared_ptr's and specify your custom
>ordering predicate to order pointers by their pointees.

The documentation for boost::ptr_vector says that using the smart pointers inside a vector isn't ideal... it's one of the reasons why ptr_vector exists. I was wondering if that logic applies still when flat_set holds pointers and is there a solution available?
Unsubscribe & other changes:

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