Boost logo

Boost Users :

Subject: Re: [Boost-users] C++ and quality of software
From: Peter Foelsche (foelsche_at_[hidden])
Date: 2010-01-26 19:32:34


"Patrick Horgan" <phorgan1_at_[hidden]> wrote in message
news:4B5F821C.60202_at_yahoo.com...

>> I don't see any use to the open() method on a file object.
>> What does this object represent, when constructed without a filename?
>> This is what boost::optional is for.
> 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);
    // use sFile here
}


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