Boost logo

Boost :

Subject: Re: [boost] [functional] [shared_ptr] boost::hash<shared_ptr<T>> Returns Only Two Values
From: Peter Dimov (pdimov_at_[hidden])
Date: 2011-02-22 17:09:49

Stewart, Robert wrote:
> The following is a program that demonstrates that a null shared_ptr<int>
> produces a hash value of zero and that (ostensibly) all non-null instances
> produce a hash value of one.

You might want to file a bug on that one. :-)

Boost list run by bdawes at, gregod at, cpdaniel at, john at