Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7100: unorderd_set<shared_ptr<T> > > - insert does not increment count
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-10 01:07:08
#7100: unorderd_set<shared_ptr<T> > > - insert does not increment count
------------------------------------------------+---------------------------
Reporter: Rich Eakin <reakinator@â¦> | Owner: danieljames
Type: Bugs | Status: assigned
Milestone: Boost 1.51.0 | Component: unordered
Version: Boost 1.50.0 | Severity: Problem
Resolution: | Keywords: unordered_set shared_ptr
------------------------------------------------+---------------------------
Comment (by Rich Eakin <reakinator@â¦>):
Ah, right you are! I had forgotten about that and had a bug in my own
code. That must mean that std::unordered_set is also using the implicit
bool to hash? It is really nice that you can catch it, as it is almost
certainly not what was intended.
Btw, yes the goal is to map unique objects based on their address. Thank
you nonetheless for your kind and thorough advice!
All is working well now, cheers.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7100#comment:5> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC