Boost logo

Boost Users :

Subject: Re: [Boost-users] [hash] hashing of smart pointer types - prevent conversion to bool?
From: Igor R (boost.lists_at_[hidden])
Date: 2010-07-06 08:52:03


> One idea is to patch the boost headers to add a hash function for each of
> the smart pointer types (as per the example above) but there must be a better answer than this?

Technically, you can define hash functions in your own headers, in
boost namespace (that's what I do). I'm not sure about legal aspects
of this though.


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