This is my code:
path Path = "e:\\Documents\\";
boost::regex reg("(*.pdf)");
for(recursive_directory_iterator it(Path); it != recursive_directory_iterator(); ++it)
{
if(boost::regex_search(it->string(), reg))
{
cout << *it << endl;
}
}
But I always get and Abort() error in Visual Studio, after running the program, the problem is in this line:
boost::regex reg("(*.pdf)");
Am I not declaring the regex object good ?