I am trying to move my code from vc6.0 to vc71. Here is the part of
code using boost regex:
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:
============
d:\s\AEM\AEM6.0\source\AEMCore\AEMRulesCfgReg.cpp(176): error C2664:
'bool boost::regex_match,std::allocator<_Ty>,std::allocator,wchar_t,traits,Allocator>(const
std::basic_string<_Elem,_Traits,_Ax>
&,boost::match_results::const_iterator,std::allocator>
&,const boost::reg_expression
&,boost::regex_constants::match_flag_type)' : cannot convert parameter
2 from 'boost::wcmatch' to
'boost::match_results &'
with
[
_Ty=wchar_t,
BidiIterator=const unsigned short *,
traits=boost::regex_traits,
Allocator=std::allocator,
_Elem=wchar_t,
_Traits=std::char_traits,
_Ax=std::allocator,
charT=wchar_t
]
and
[
BidiIterator=std::basic_string,std::allocator>::const_iterator,
Allocator=std::allocator>
]
==================
also, I got lots warning C4018: '<' : signed/unsigned mismatch,
although that's ok for me right now.
Thanks for any help.
frank