basic_streambuf / locale::ctype problems

Gabriel Dos Reis gdr@codesourcery.com
Sat Jun 29 11:21:00 GMT 2002


"Jack Reeves" <jackw_reeves@hotmail.com> writes:

[...]

| As written, this program has undefined behavior. Basic_stringstream<int> 
| depends upon char_traits<int>. The Standard requires only a declaration for 
| the template char_traits,

No, the standard does define a template class named std::char_traits<>
as per 21.1/1. 

-- Gaby



More information about the Libstdc++ mailing list