Boost logo

Boost Users :

From: Darren Garvey (lists.drrngrvy_at_[hidden])
Date: 2007-11-22 07:48:45


Hi John,

On 22/11/2007, John Maddock <john_at_[hidden]> wrote:
>
> Darren Garvey wrote:
> >> Is the example above supposed to work?
>
> Nope: different iterator types: cmatch supports const char* iterators, but
> basic_string::const_iterator isn't necessarily that type (though sometimes
> it is, depending on the platform/compiler). You should be using
> boost::smatch as the match_results type when searching a std::string.

Oh dear, I should have seen this. Thanks for the help.

HTH, John.

Cheers,
Darren



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net