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