|
Boost : |
From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-01-28 22:09:22
On Monday 28 January 2002 08:03 pm, you wrote:
> Oh, and then we make a version that uses a nontype template parameter for
> the member pointer ;-)
>
> I recently discovered that nontype template parameters other than integers
> are much better supported across compilers than I had previously expected,
> so now I'm on the lookout for uses. I have to thank Andrei Alexandrescu for
> putting the thought in my mind; I read that he was doing that with function
> pointers in an article I saw somewhere.
This would be the way to stuff a member function pointer + "this" pointer
into a Boost.Function object without taking up any additional space.
Doug
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk