Hi *,
beim Übersetzen von epg2vdr Version 1.1.50 kommt:
Code
ttools.c: In function int enrichEvent(cEpgEvent*, cDbTable*, cDbStatement*):
ttools.c:645:57: error: no matching function for call to regex_replace(std::string&, std::regex, const char [4])
source = regex_replace(source, regex("vdr"), "dvb");
^
ttools.c:645:57: note: candidates are:
In file included from /usr/include/c++/4.8/regex:62:0,
from ttools.c:9:
/usr/include/c++/4.8/bits/regex.h:2162: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)
regex_replace(_Out_iter __out, _Bi_iter __first, _Bi_iter __last,
^
/usr/include/c++/4.8/bits/regex.h:2162:5: note: template argument deduction/substitution failed:
ttools.c:645:57: note: deduced conflicting types for parameter _Bi_iter (std::basic_regex<char> and const char*)
source = regex_replace(source, regex("vdr"), "dvb");
^
In file included from /usr/include/c++/4.8/regex:62:0,
from ttools.c:9:
/usr/include/c++/4.8/bits/regex.h:2182: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)
regex_replace(const basic_string<_Ch_type>& __s,
^
/usr/include/c++/4.8/bits/regex.h:2182:5: note: template argument deduction/substitution failed:
ttools.c:645:57: note: mismatched types const std::basic_string<_Ch_type> and const char [4]
source = regex_replace(source, regex("vdr"), "dvb");
^
Makefile:120: recipe for target 'ttools.o' failed
make[1]: *** [ttools.o] Error 1
Alles anzeigen
Kann es am Compiler liegen? Ich hab hier noch gcc 4.8, der scheint das Template nicht zu kennen.
Ciao.
Michael.