|
Boost : |
Subject: Re: [boost] How to use mutable_queue with non basic types
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2010-04-10 16:51:33
On Fri, 9 Apr 2010, Emili Hernàndez wrote:
> Hi all,
>
> I've used mutable_queue with basic types (double and int) with no problem.
> Now I trying to do it with my own type:
>
> typedef MyObject entry_t;
> typedef vector<entry_t> storage_t;
> typedef MySortingCriterion comp_t;
> typedef boost::identity_property_map prop_map_t;
> typedef boost::mutable_queue<entry_t, storage_t, comp_t, prop_map_t>
> queue_t;
identity_property_map is only for unsigned ints (it's that way for
historical reasons). Use typed_identity_property_map<entry_t> as
prop_map_t and see if that fixes your problem.
-- Jeremiah Willcock
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk