[comp.lang.c++] friend class function pointer

brian@spinel.labmed.umn.edu (03/18/91)

I have a problem: passing pointer of friend class function.
Using GNU c++:
class node {
friend class network;
..};

in file :network.h
typedef void (node::*fpt)(node*);
class network{...
void apply(fpt);
..};

in file: network.cc
void apply(void (node::*fn)(node* nn){...}

gave a message: parse error before *.

Please let me know if you have solution for it.  Thanks.