|
From: Kristian M. <kri...@ya...> - 2007-07-30 02:04:44
|
Hi, Ulrich!=0A=0AUnfortunately, I tried it and it has not worked... The sol= ution was the typename hint that Matheus said in his email.=0A=0AThanks for= helping,=0A=0AKristian=0A=0A=0A----- Original Message ----=0AFrom: "Ulrich= Mu...@ao..." <Ulr...@ao...>=0ATo: kri...@ya...; dev-c= pp-...@li...=0ASent: Sunday, July 29, 2007 1:25:52 PM=0AS= ubject: Re: [Dev-C++] Iterator=0A=0A=0A=0A =0A=0AHi Kristian,=0A=0Adid you = try writing =0A=0Astd::vector<ArvoreB<T> >::iterator it_filho;=0A=0Ainstead= of =0A=0A=0Astd::vector<ArvoreB >::iterator it_filho; ?=0A=0A =0A=0ASince = a few years, compilers tend to think very general about =0Atemplates.=0A=0A= For them, It could be that in implementing your function you wish to make = =0Ause=0A=0Aof class ArvoreB<int>.=0A=0AIt is not easy to infer answers to= such questions from authoritative=0A=0Aliterature (such as C++ templates, = The complete Guide by =0A=0AD. Vandevoorde and N.M. Josutis) in a way that = your compiler agrees.=0A=0ARegards, Ulrich=0A=0A =0A=0A=0A=0A=0A=0A = ___________________________________________________________________________= _________=0APark yourself in front of a world of choices in alternative veh= icles. Visit the Yahoo! Auto Green Center.=0Ahttp://autos.yahoo.com/green_c= enter/ |