This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [bug report] no fall back implementation of char_traits<CharT>


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]