Boost logo

Boost Users :

From: Polder, Matthew J (matthew.j.polder_at_[hidden])
Date: 2007-02-01 12:08:49


I am trying to do the following:
 

std::vector< std::string > filenames; //list of filenames retrieved
using filesystem
 
boost::regex r(".*txt$");
 
std::vector< std::string >::const_iterator iter =
 std::find_if( filenames.begin(), filenames.end(),
 boost::bind(boost::regex_match, _1, r) ); //Doesn't compile.
 
I'm trying to find strings that match (or don't match) a particular
regular expression. Help in properly using boost::bind and negating it
would be helpful.
 
thanks,
matthew



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