"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