
27 Jan
2010
27 Jan
'10
8:11 a.m.
What about after a close() and a subsequent open() in a routine processing a series of files? typedef std::vectorstd::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
Peter Foelsche wrote: ...elision by Patrick... (I wrote;) pay it every time through the loop. That's cool. I understand the disconnect in our communications a lot better now:) Patrick