prog.cpp: In function ‘int main()’:
prog.cpp:32:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
prog.cpp:38:70: error: no matching function for call to ‘regex_replace(std::string&, std::regex&, const char [5])’
prog.cpp:38:70: note: candidates are:
In file included from /usr/include/c++/4.7/regex:62:0,
from prog.cpp:4:
/usr/include/c++/4.7/bits/regex.h:2200:5: note: template<class _Out_iter, class _Bi_iter, class _Rx_traits, class _Ch_type> _Out_iter std::regex_replace(_Out_iter, _Bi_iter, _Bi_iter, const std::basic_regex<_Ch_type, _Rx_traits>&, const std::basic_string<_Ch_type>&, std::regex_constants::match_flag_type)
/usr/include/c++/4.7/bits/regex.h:2200:5: note: template argument deduction/substitution failed:
prog.cpp:38:70: note: deduced conflicting types for parameter ‘_Bi_iter’ (‘std::basic_regex<char>’ and ‘const char*’)
In file included from /usr/include/c++/4.7/regex:62:0,
from prog.cpp:4:
/usr/include/c++/4.7/bits/regex.h:2220:5: note: template<class _Rx_traits, class _Ch_type> std::basic_string<_Ch_type> std::regex_replace(const std::basic_string<_Ch_type>&, const std::basic_regex<_Ch_type, _Rx_traits>&, const std::basic_string<_Ch_type>&, std::regex_constants::match_flag_type)
/usr/include/c++/4.7/bits/regex.h:2220:5: note: template argument deduction/substitution failed:
prog.cpp:38:70: note: mismatched types ‘const std::basic_string<_Ch_type>’ and ‘const char [5]’