From: John Maddock (john_maddock_at_[hidden])
Date: 2003-06-13 05:25:21


> 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.