
Doug Gregor wrote:
On Tue, Sep 8, 2009 at 12:57 PM, vicente.botet<vicente.botet@wanadoo.fr> wrote:
template <typename PointerTy, unsigned IntBits, typename IntType=unsigned, typename PtrTraits = PointerLikeTypeTraits<PointerTy> > class PointerIntPair; "
I like the way it manage to store several bits using a PointerLikeTypeTraits
Thanks to all to pointing to this simple class.
Are you interested on the inclusion of this class to boost?
As I mentioned before, we've found it very useful in Clang to keep various data structures small. I imagine that Boost libraries and users would want to do the same, so it would make a good addition to Boost.
I would also be interested. I've already implemented my own version in a library I'm developing (which I might one day submit to Boost), so I would really like one in Boost. Sebastian