|
Boost : |
From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2002-04-25 08:23:05
Arun Sivaramakrishnan wrote:
>
> Can the address of a non-static member functions be passed as
> template args?.
Yes, as a template value argument:
template<class T, class R, R (T::*)()>
class C { ... };
struct A { void f(); };
C<A, void, &A::f> c;
> (i dont have access to the standard)
The ISO C++ standard is available for electronic
sale at http://www.incits.org/.
Jens Maurer
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk