Template declaration problem?
Alexandre Oliva
oliva@dcc.unicamp.br
Wed Sep 16 13:51:00 GMT 1998
Bruce Eckel <Eckel@CrestedButte.net> writes:
> I tried a number of different attempts at forward declaration, and all were
> rejected by 1.1. Can you give me a hint?
> template<class T>
> class Ring {
> list<T> lst;
replace:
> friend class iterator;
> public:
with:
public:
class iterator;
friend class iterator;
Unfortunately, the new version of your code snippet reveals more bugs
in egcs :-(
BTW, what's up with your mailing software that replaces some open
curly brackets with a blank line? It's quite annoying to have to
manually fix that to test your programs :-(
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc-bugs
mailing list