2 // GROUPS passed templates
3 template <class Called>
7 aCallback(Called& obj, int (Called::*met)());
17 // the method to apply
18 int (Called::*method)();
22 template <class Called>
23 aCallback<Called>::aCallback(Called& obj,
24 int (Called::*met)()) :
29 template <class Called>
30 int aCallback<Called>::callback()
32 return (object.*method)();
37 int action() {return 24;}
44 aCallback<myStruct> cb(toto, &myStruct::action);