This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [bug report] no fall back implementation of char_traits<CharT>
- From: Martin Sebor <sebor at roguewave dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: Zhang Le <ejoy at peoplemail dot com dot cn>, paolo at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Date: Mon, 10 Feb 2003 09:50:40 -0700
- Subject: Re: [bug report] no fall back implementation of char_traits<CharT>
- Organization: Rogue Wave Software, Inc.
- References: <20021120123945.28404.qmail@sources.redhat.com> <20030210071725.GA6072@localhost.localdomain> <m3fzqwwcwp.fsf@uniton.integrable-solutions.net>
Gabriel Dos Reis wrote:
Zhang Le <ejoy@peoplemail.com.cn> writes:
| Hi all,
| I just find in char_traits.h(gcc 3.2 shipped with rh8) there is no
| fall back implementation for _CharT. Only two explicit specialization
| version for char and wchar_t
That is what the C++ standards require. Please consult the FAQ
I'm not sure the standard actually _requires_ that there be no
primary template definition, I think it just allows there to be
none :) The primary could be useful in instantiating string on
fundamental types, for example.
Regards
Martin