Regex issue under Visual Studio 2003
I have an inherited VC++ program that I am trying to port to Microsoft
Visual Studio 2003 (it compiles and runs fine in Visual Studio 6.0). I've
downloaded the 1.30.0 release, and the following problem still occurs.
The (exceptionally) verbose error message I receive from the compiler is:
error C2664: 'bool
boost::regex_match
Anyone have any suggestions? I am well out of my depth in trying to understand the incantations here, and have a dozen spots in the code where this occurs. TIA,
You are using the wrong match_results type: when searching std::string's you
need to use match_resultsstd::string::const_iterator which is the same as
the typedef boost::smatch, note that the typedef boost::cmatch is really
match_results
participants (2)
-
Frank Schwab
-
John Maddock