Re: [Dev-C++] Second STL example has a problem...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Hossein H. <ult...@em...> - 2003-07-10 19:10:28
|
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 |