trying to compile:
cmatch what;
string gurf;
regex_match(gurf.begin(), gurf.end(), what, type_1_head);
result:
c:\Documents and Settings\RDahl\My Documents\Visual Studio Projects\nistlib\nistlib.cpp(29) : error C2780: 'bool boost::regex_match(const std::basic_string<charT,ST,SA> &,const boost::basic_regex<charT,traits> &,boost::regex_constants::match_flag_type)' : expects 3 arguments - 4 provided
c:\dev7\Boost\include\boost-1_33\boost\regex\v4\regex_match.hpp(87) : see declaration of 'boost::regex_match'
c:\Documents and Settings\RDahl\My Documents\Visual Studio Projects\nistlib\nistlib.cpp(29) : error C2780: 'bool boost::regex_match(const charT *,const boost::basic_regex<charT,traits> &,boost::regex_constants::match_flag_type)' : expects 3 arguments - 4 provided
c:\dev7\Boost\include\boost-1_33\boost\regex\v4\regex_match.hpp(78) : see declaration of 'boost::regex_match'
c:\Documents and Settings\RDahl\My Documents\Visual Studio Projects\nistlib\nistlib.cpp(29) : error C2784: 'bool boost::regex_match(const std::basic_string<charT,ST,SA> &,boost::match_results<std::basic_string<charT,ST,SA>::const_iterator,Allocator> &,const boost::basic_regex<charT,traits> &,boost::regex_constants::match_flag_type)' : could not deduce template argument for 'const std::basic_string<T4,_Elem,_Traits> &' from 'std::basic_string<_Elem,_Traits,_Ax>::iterator'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Ax=std::allocator<char>
]
c:\dev7\Boost\include\boost-1_33\boost\regex\v4\regex_match.hpp(70) : see declaration of 'boost::regex_match'
c:\Documents and Settings\RDahl\My Documents\Visual Studio Projects\nistlib\nistlib.cpp(29) : error C2784: 'bool boost::regex_match(const std::basic_string<charT,ST,SA> &,boost::match_results<std::basic_string<charT,ST,SA>::const_iterator,Allocator> &,const boost::basic_regex<charT,traits> &,boost::regex_constants::match_flag_type)' : could not deduce template argument for 'const std::basic_string<T4,_Elem,_Traits> &' from 'std::basic_string<_Elem,_Traits,_Ax>::iterator'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Ax=std::allocator<char>
]
c:\dev7\Boost\include\boost-1_33\boost\regex\v4\regex_match.hpp(70) : see declaration of 'boost::regex_match'
c:\Documents and Settings\RDahl\My Documents\Visual Studio Projects\nistlib\nistlib.cpp(29) : error C2784: 'bool boost::regex_match(const std::basic_string<charT,ST,SA> &,boost::match_results<std::basic_string<charT,ST,SA>::const_iterator,Allocator> &,const boost::basic_regex<charT,traits> &,boost::regex_constants::match_flag_type)' : could not deduce template argument for 'const std::basic_string<T4,_Elem,_Traits> &' from 'std::basic_string<_Elem,_Traits,_Ax>::iterator'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Ax=std::allocator<char>
]
c:\dev7\Boost\include\boost-1_33\boost\regex\v4\regex_match.hpp(70) : see declaration of 'boost::regex_match'
c:\Documents and Settings\RDahl\My Documents\Visual Studio Projects\nistlib\nistlib.cpp(29) : error C2784: 'bool boost::regex_match(const std::basic_string<charT,ST,SA> &,boost::match_results<std::basic_string<charT,ST,SA>::const_iterator,Allocator> &,const boost::basic_regex<charT,traits> &,boost::regex_constants::match_flag_type)' : could not deduce template argument for 'const std::basic_string<T4,_Elem,_Traits> &' from 'std::basic_string<_Elem,_Traits,_Ax>::iterator'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Ax=std::allocator<char>
]
c:\dev7\Boost\include\boost-1_33\boost\regex\v4\regex_match.hpp(70) : see declaration of 'boost::regex_match'
c:\Documents and Settings\RDahl\My Documents\Visual Studio Projects\nistlib\nistlib.cpp(29) : error C2784: 'bool boost::regex_match(const charT *,boost::match_results<const charT*,Allocator> &,const boost::basic_regex<charT,traits> &,boost::regex_constants::match_flag_type)' : could not deduce template argument for 'const T1 *' from 'std::basic_string<_Elem,_Traits,_Ax>::iterator'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Ax=std::allocator<char>
]
c:\dev7\Boost\include\boost-1_33\boost\regex\v4\regex_match.hpp(61) : see declaration of 'boost::regex_match'
c:\Documents and Settings\RDahl\My Documents\Visual Studio Projects\nistlib\nistlib.cpp(29) : error C2784: 'bool boost::regex_match(iterator,iterator,const boost::basic_regex<charT,traits> &,boost::regex_constants::match_flag_type)' : could not deduce template argument for 'const boost::basic_regex<traits,T3> &' from 'boost::cmatch'
c:\dev7\Boost\include\boost-1_33\boost\regex\v4\regex_match.hpp(46) : see declaration of 'boost::regex_match'
c:\Documents and Settings\RDahl\My Documents\Visual Studio Projects\nistlib\nistlib.cpp(29) : error C2782: 'bool boost::regex_match(BidiIterator,BidiIterator,boost::match_results<BidiIterator,Allocator> &,const boost::basic_regex<charT,traits> &,boost::regex_constants::match_flag_type)' : template parameter 'BidiIterator' is ambiguous
c:\dev7\Boost\include\boost-1_33\boost\regex\v4\regex_match.hpp(37) : see declaration of 'boost::regex_match'
could be 'const char *'
or 'std::basic_string<_Elem,_Traits,_Ax>::iterator'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Ax=std::allocator<char>
]
Build log was saved at "file://c:\Documents and Settings\RDahl\My Documents\Visual Studio Projects\nistlib\Debug\BuildLog.htm"
nistlib - 9 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped