bagchi@dip.eecs.umich.edu (Ranjan Bagchi) (06/28/90)
Is there anything special I have to do so that I can do the following: class foo { bar bat; . . . }; class bar { . . . int glorp(foo); }; ------------------ Ordinarily, I would just define class 'bar' before class 'foo'. However, because class bar has a function which deals with class foo, I run inot the same problem. g++ is complaining because of this... -rj bagchi@eecs.umich.edu
mneerach@inf.ethz.ch (Matthias Ulrich Neeracher) (07/02/90)
In article <2828@zipeecs.umich.edu> bagchi@dip.eecs.umich.edu (Ranjan Bagchi) writes: > Is there anything special I have to do so that I can do the >following: > class foo { > bar bat; > }; > > class bar { > int glorp(foo); > }; > This should work : class foo; class bar { int glorp(foo); }; class foo { bar bat; }; I have not been feeding this to any compiler, though. Matthias