All pastes #383810 Raw Edit

member pointer

public cpp v1 · immutable
·published 2007-03-06 17:04 UTC
rendered paste body
struct A {static const int MAX=3;int a[MAX];};template <class U, class V>void fun(U V::*mobj){}main(){// fun(&A:a[1]); // not working, see below}/*error C2597: illegal reference to non-static member 'A::a'*/