Boost logo

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

Jens Maurer

Boost list run by bdawes at, gregod at, cpdaniel at, john at