
12 Jun
2003
12 Jun
'03
3:38 a.m.
On a whim, I tried changing 'boost::cmatch' to 'boost::smatch'. That fixed my problem. I'd appreciate it if someone would tell me what was going on, though. Thanks, - Mark

13 Jun
13 Jun
10:25 a.m.
New subject: [Boost-Users] Re: RegEx Windows vs Linux
On a whim, I tried changing 'boost::cmatch' to 'boost::smatch'. That fixed my problem.
I'd appreciate it if someone would tell me what was going on, though.
Yes: smatch is match_results<std::string::const_iterator> and cmatch is match_results<const char*>, with some std libs these are the same thing, on others not. You are correct to be using smatch when matching a std::string. John.
8022
Age (days ago)
8023
Last active (days ago)
1 comments
2 participants
participants (2)
-
John Maddock
-
Mark Sizer