This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: need help with std::char_traits<unsigned short> methods


> 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


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