Boost logo

Boost :

From: Gregory Colvin (gregory.colvin_at_[hidden])
Date: 2003-05-03 23:13:01


On Saturday, May 3, 2003, at 21:12 America/Denver, Justin M. Lewis
wrote:
> Or, how about,
> void GetFileName(c_in_out<std::string> path, const std::string &filter)
> {
> std::string fname;
> FindFirstFileWithFilter(out(fname), path, filter);
> path += "/";
> path += fname;
> }

std::string GetFileName(std::string path, const std::string &filter) {
   std::string fname = FindFirstWithFilter(path,filter);
   return path + "/" + fname;
}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk