why doesn't "namespace str" insulate me from stuff in algo.h?

Jim Michaels jim.michaels@jesusnjim.com
Wed Apr 20 04:49:00 GMT 2016


please invent regex for fstream. or find some way to tie them together 
without using std::string or a statically allocated char array.


..\..\..\lib\strfuncs\strfuncs.cpp:377:12: note: candidate: size_t 
str::find(STRTYPE, STRTYPE, bool, size_t)
      size_t find(STRTYPE searchIn, STRTYPE searchFor, bool iCase=false, 
size_t pos=0) {
             ^~~~

this error message "note:candidate" has no context. what does it mean?


..\..\..\lib\strfuncs\strfuncs.cpp:377:12: note:   no known conversion 
for argument 1 from 'std::__cxx11::u16string {aka 
std::__cxx11::basic_string<char16_t>}' to 'STRTYPE {aka 
std::__cxx11::basic_string<char>}'
In file included from 
c:\gcc-6-win32\include\c++\6.0.0\bits\locale_facets.h:48:0,
                  from c:\gcc-6-win32\include\c++\6.0.0\bits\basic_ios.h:37,
                  from c:\gcc-6-win32\include\c++\6.0.0\ios:44,
                  from c:\gcc-6-win32\include\c++\6.0.0\ostream:38,
                  from c:\gcc-6-win32\include\c++\6.0.0\iostream:39,
                  from ..\..\..\lib\strfuncs\strfuncs.cpp:15:
c:\gcc-6-win32\include\c++\6.0.0\bits\streambuf_iterator.h:369:5: note: 
candidate: template<class _CharT2> typename 
__gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, 
std::istreambuf_iterator<_CharT> >::__type 
std::find(std::istreambuf_iterator<_CharT>, 
std::istreambuf_iterator<_CharT>, const _CharT2&)
      find(istreambuf_iterator<_CharT> __first,
      ^~~~

what is this saying? and having problems with <algorithm> and <iterator>.





More information about the Gcc-help mailing list