This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: more string instantiation changes
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: Re: more string instantiation changes
- From: Branko Čibej <branko dot cibej at hermes dot si>
- Date: Thu, 20 Apr 2000 18:16:07 +0200
- Organization: HERMES SoftLab
- References: <20000418212902.A32758@store.zembu.com>
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