need help with std::char_traits<unsigned short> methods

Gerry trick@icculus.org
Fri Jul 4 23:37:00 GMT 2003


> Start here: 
> http://gcc.gnu.org/onlinedocs/libstdc++/21_strings/howto.html#5

Thank you! I can't believe i missed that. I followed the howto to this: 
http://gcc.gnu.org/ml/libstdc++/2002-08/msg00260.html, and it seems like 
something i can use, but it doesn't say what license it is under. As i 
mentioned before, there's a chance this may be used in a commercial game 
later on.. Would that be okay ?

> You can't overload a namespace.

I know, that's not what i meant. I was talking about overloading the 
std::char_traits<unsigned short>::... methods. Sorry if i was unclear.

> You can specialize a template from std, if at least one of the types
> involved in the specialization is user-defined, e.g.,

So, if i got it right, that means i _can't_ specialize a template if the type 
is basic, like unsigned short, but have to create a class to wrap it in. 

- Gerry



More information about the Libstdc++ mailing list