Boost logo

Boost Users :

From: Novi Sad (podbara62_at_[hidden])
Date: 2008-04-04 11:21:36


I have find promising (depreciated) library in cregex.hpp. (If you are to
try it yourself, make sure you have few .jpg files in 'jnk' directory). I
have tried experimenting setting different boost::match_flag_type but no
luck. Also I didn't receive any callback as expected in my 'cb' callback
func? The program would seem to find all files, but then it will crash in
bool regex_search(…). Any ideas?

#include "boost/regex/v4/cregex.hpp"

 bool cb(const char* file)

{

      return true;

}

int _tmain(int argc, _TCHAR* argv[])

{

      boost::RegEx regEx;

      std::string files ("C:\\jnk\\*.jpg");

      regEx.FindFiles(cb, files, true);

      return 1;

 }



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