more string instantiation changes

Branko Branko
Thu Apr 20 09:17:00 GMT 2000


ncm@cantrip.org wrote:
> 
> This brings the string instantiation stuff up to date.
> Note removal of the src/wstring-inst.cc file.

Shouldn't the wstring instantiations be performed only when
_GLIBCPP_USE_WCHAR_T is defined? I'm havind all sorts of problems
with this on Solaris 2.6, where it's not defined because of 
missing WCHAR_MAX and WCHAR_MIN.

One problem is that the char_traits<wchar_t> specialization is
not defined, leading to a signed/unsigned mismatch warning in

    char_traits<T>::assign(char_type*, int_type, char_type)

which kills the compile because of -Werror.

The second problem occurs when wstring::find is being instantiated
(string-inst.cc:301), because wstring isn't typedef'd.


Then again, maybe I should just see what it would take to get
rid of the dependency on WCHAR_MIN/MAX ...

    Brane

-- 
Branko Čibej                 <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 1) 586 53 49     fax: (+386 1) 586 52 70


More information about the Libstdc++ mailing list