Boost logo

Boost :

From: ozawa_at_[hidden]
Date: 2001-08-21 06:22:08

I wrote the following code and tried to compile it using VC6SP5 on
Windows 2000, but it failed.

  boost::reg_expression<char, boost::c_regex_traits<char> > regex("aaa");
  boost::cmatch results;
  boost::regex_match("bbb", results, regex); // here the error occurred

Error message is:
error C2665: 'regex_match' : none of the 8 overloads can convert
parameter 1 from type 'unsigned short [4]'

And the same error occur with "boost::cpp_regex_traits".
How can I use "boost::c_regex_traits" or "boost::cpp_regex_traits" ?


Boost list run by bdawes at, gregod at, cpdaniel at, john at