Boost logo

Boost Users :

Subject: Re: [Boost-users] C++ and quality of software
From: Patrick Horgan (phorgan1_at_[hidden])
Date: 2010-01-27 03:11:49


Peter Foelsche wrote:

   ...elision by Patrick... (I wrote;)
>> What about after a close() and a subsequent open() in a routine
>> processing a series of files?
> typedef std::vector<std::string> CStringVector;
>
> CStringVector sFileNames;
>
> for (CStringVector::const_iterator p = sFilenNmes.begin(), pEnd =
> sFileNames.end();
> p != pEnd;
> ++p)
> { CFile sFile(*p);
Is that an MFC CFile!? Won't work on linux! LOL. Anyway, not
standard, certainly not the fstream we were talking about, and although
I don't know anything about construction cost, I do know you'll have to
pay it every time through the loop. That's cool. I understand the
disconnect in our communications a lot better now:)

Patrick


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net