Topic: forward declaration of typedef?


Author: richard@atheist.tamu.edu (Richard Henderson)
Date: 1 Nov 1994 23:29:44 GMT
Raw View
I am having a problem defining the type of a function that accepts
a template-based list of functions of the same type.  My only thoughts
have required the ability to forward declare a typedef, e.g.:

 template<class T> class List { /* ... */ };

 // Formulation 1
 typedef Fn_List;
 typedef void (*Fn)(Fn_List &);
 typedef List<Fn> Fn_List;

 // Formulation 2
 typedef Fn;
 typedef void (*Fn)(List<Fn> &);

Does anyone have a resonable solution to the puzzle?


richard~
--------
richard henderson <richard@atheist.tamu.edu>