Re: [Dev-C++] Second STL example has a problem...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel G. <sp...@ho...> - 2003-07-11 05:59:53
|
Thanks, that is VERY useful. VC++ is what we use at work you see, but I believe we're using to .NET soon. I'll look for the name of the book when I get to work (it's a 2000 book). >From: "Hossein Haeri" <ult...@em...> >To: "Daniel Glenfield" <sp...@ho...> >CC: dev...@li... >Subject: Re: [Dev-C++] Second STL example has a problem... >Date: Thu, 10 Jul 2003 13:56:56 -0500 > >Dear Daniel, > > > It's annoying because the examples don't show what headers to add nor >does > > it say about using namespace std (I'm going with Ioannis' theory about > > explicitly stating std:: in my code). > > > > This line is causing the problem in VC++ 6.0 > > > > std::vector<std::string> StrVector(Itr, EndOfFile); > > > > where Itr and EndOfFile are members of my class LineIterator > > > > I'm told by the compiler that Itr cannot be converted to an unsigned >int... > > thoughts? > >That's a known bug in VC++6. There are lots of them. Take a look at: > >http://www.acceleratedcpp.com/details/msbugs.html > >That's because there is no range constructor implemented in VC++6. > >I have to mention a recommendation that I had posted before: > >Don't count on VC++6. This nasty C++ implementation is not >Standard-compliant. Change your implementation as soon as possible. If >you need developery tools, consider BCB6 that is much more >Standard-compliant. Nothing in VC++6 is reliable! > >BTW, VC++7.1 is so far reported to be Standard-compliant, but it takes >time to test it really as it should. > >Regards, >--Hossein > >-- >__________________________________________________________ >Sign-up for your own FREE Personalized E-mail at Mail.com >http://www.mail.com/?sr=signup > >CareerBuilder.com has over 400,000 jobs. Be smarter about your job search >http://corp.mail.com/careers > _________________________________________________________________ Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile |