Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2005-03-02 05:59:56


> boost::wregex ee(L"[E|e],(\\w+),(.+)$");
> boost::wcmatch mr;
> TString value=L"some char";
> if (boost::regex_match(value, mr, ee))
> {
> ...
> }
>
> Those code compiled with UNICODE and was ok on vc6.0. But when I
> compile with VC71, it gives me error c2664:

With VC7.1 basic_string::const_iterator is no longer a pointer type, so
wcmatch is the wrong typedef to use: use wsmatch instead (you should have
been using it before, it's just that your code compiled "by accident" with
VC6).

John.


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