Adding & infront of MyFalse results in the following error:

no matching function for call to 'boost::RegEx::FindFiles(bool (*) (const char*), 
std::string&)'

-----Original Message-----
From: John Maddock [mailto:jm@;regex.fsnet.co.uk]
Sent: Saturday, November 09, 2002 6:52 AM
To: Boost mailing list
Subject: Re: [boost] Trying to use FindFiles in RegEx Class


> 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


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to