
12 May
2011
12 May
'11
2:41 p.m.
Den 12-05-2011 12:58, Dominik Steenken skrev:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
inline std::size_t hash_value(boost::shared_ptr<const IHashable> obj) { return obj->hash_value(); }
Remark: always write foo( const boost::shared_ptr<T>& obj) to avoid needless update of the ref count/weak count. -Thorsten