|
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: http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk