Boost logo

Boost :

From: John Maddock (jm_at_[hidden])
Date: 2002-11-09 06:51:54


> Having trouble creating working FindFiles callback function, need help!
>
> Here is what I am trying, if anyone can tell me what I am doing wrong it
would be appreciated.
>
> bool MyFalse(const char*)
> {
> return false;
> }
>
> int myfunction()
> {
> ,,,,,,
> RegEx expresion;
> .....
> exprestion.FindFile(MyFalse, string);
> }
>
> I get error:
>
> no matching function for call to 'boost::RegEx::FindFiles(bool (&) (const
char*), std::string&)'

What happens if you use exprestion.FindFile(&MyFalse, string); ??

John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm


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