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

Martin Sebor sebor@roguewave.com
Mon Feb 10 16:51:00 GMT 2003


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



More information about the Gcc-bugs mailing list