0_0_21886718_6156.cpp: In function 'int main()':
0_0_21886718_6156.cpp:34:27: error: no matching function for call to 'regex_match(std::string&, std::string&)'
if(regex_match(a,b)){
^
0_0_21886718_6156.cpp:34:27: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/regex:58:0,
from 0_0_21886718_6156.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:1986:5: note: template<class _Bi_iter, class _Alloc, class _Ch_type, class _Rx_traits> bool std::regex_match(_Bi_iter, _Bi_iter, std::match_results<_BiIter, _Alloc>&, const std::basic_regex<_CharT, _TraitsT>&, std::regex_constants::match_flag_type)
regex_match(_Bi_iter __s,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:1986:5: note: template argument deduction/substitution failed:
0_0_21886718_6156.cpp:34:27: note: candidate expects 5 arguments, 2 provided
if(regex_match(a,b)){
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/regex:58:0,
from 0_0_21886718_6156.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:2014:5: note: template<class _Bi_iter, class _Ch_type, class _Rx_traits> bool std::regex_match(_Bi_iter, _Bi_iter, const std::basic_regex<_Ch_type, _Rx_traits>&, std::regex_constants::match_flag_type)
regex_match(_Bi_iter __first, _Bi_iter __last,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:2014:5: note: template argument deduction/substitution failed:
0_0_21886718_6156.cpp:34:27: note: candidate expects 4 arguments, 2 provided
if(regex_match(a,b)){
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/regex:58:0,
from 0_0_21886718_6156.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:2039:5: note: template<class _Ch_type, class _Alloc, class _Rx_traits> bool std::regex_match(const _Ch_type*, std::match_results<const _Ch_type*, _Alloc>&, const std::basic_regex<_Ch_type, _Rx_traits>&, std::regex_constants::match_flag_type)
regex_match(const _Ch_type* __s,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:2039:5: note: template argument deduction/substitution failed:
0_0_21886718_6156.cpp:34:27: note: mismatched types 'const _Ch_type*' and 'std::basic_string<char>'
if(regex_match(a,b)){
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/regex:58:0,
from 0_0_21886718_6156.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:2063:5: note: template<class _Ch_traits, class _Ch_alloc, class _Alloc, class _Ch_type, class _Rx_traits> bool std::regex_match(const std::basic_string<_Ch_type, _Ch_traits, _Ch_alloc>&, std::match_results<typename std::basic_string<_Ch_type, _Ch_traits, _Ch_alloc>::const_iterator, _Alloc>&, const std::basic_regex<_Ch_type, _Rx_traits>&, std::regex_constants::match_flag_type)
regex_match(const basic_string<_Ch_type, _Ch_traits, _Ch_alloc>& __s,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:2063:5: note: template argument deduction/substitution failed:
0_0_21886718_6156.cpp:34:27: note: 'std::string {aka std::basic_string<char>}' is not derived from 'std::match_results<typename std::basic_string<_Ch_type, _Ch_traits, _Ch_alloc>::const_iterator, _Alloc>'
if(regex_match(a,b)){
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/regex:58:0,
from 0_0_21886718_6156.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:2086:5: note: template<class _Ch_type, class _Rx_traits> bool std::regex_match(const _Ch_type*, const std::basic_regex<_Ch_type, _Rx_traits>&, std::regex_constants::match_flag_type)
regex_match(const _Ch_type* __s,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:2086:5: note: template argument deduction/substitution failed:
0_0_21886718_6156.cpp:34:27: note: mismatched types 'const _Ch_type*' and 'std::basic_string<char>'
if(regex_match(a,b)){
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/regex:58:0,
from 0_0_21886718_6156.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:2108:5: note: template<class _Ch_traits, class _Str_allocator, class _Ch_type, class _Rx_traits> bool std::regex_match(const std::basic_string<_Ch_type, _Ch_traits, _Str_allocator>&, const std::basic_regex<_CharT, _TraitsT>&, std::regex_constants::match_flag_type)
regex_match(const basic_string<_Ch_type, _Ch_traits, _Str_allocator>& __s,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/regex.h:2108:5: note: template argument deduction/substitution failed:
0_0_21886718_6156.cpp:34:27: note: 'std::string {aka std::basic_string<char>}' is not derived from 'const std::basic_regex<_CharT, _TraitsT>'
if(regex_match(a,b)){
^
|