Boost logo

Boost :

Subject: [boost] multi_index bug?
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-10-07 08:54:42


Hi,

I've got this container:
  typedef boost::multi_index_container<
    torrent_t,
    boost::multi_index::indexed_by<
      // boost::multi_index::hashed_unique<boost::multi_index::member<torrent_t,
int, &torrent_t::id>>,
      boost::multi_index::ordered_unique<boost::multi_index::member<torrent_t,
int, &torrent_t::id>>,
      boost::multi_index::sequenced<>
>
> torrents_t;

I'm using the find() member to find elements. When I use
hashed_unique, it seems to be unable to find some elements, while it
finds all if I use ordered_unique.
This is with Boost 1.46.1.1 (Debian) and gcc version 4.6.1 (Debian 4.6.1-4)
Is this a known issue?

Olaf


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk