Boost logo

Boost Users :

Subject: Re: [Boost-users] mpl and set of maps
From: Larry Evans (cppljevans_at_[hidden])
Date: 2011-03-21 11:19:21


On 03/20/11 19:21, Peter Foelsche wrote:
> It looks like two maps with the same entries but different ordering are
> considered different.
> I'm trying to create a set of maps and I'm inserting two maps.
> Both maps are identical but the order in which the items were inserted
> into the map is different.
> I was thinking that an associative sequence like set is using is_same to
> compare two elements
> and I tried to overload is_same -- but this did not work.

IIRC, mpl uses mpl::equal(or some similar name) to test equality of
associative sequences.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net