
23 Jul
2005
23 Jul
'05
5:48 p.m.
Hello, I'm looking for a way to convert an integral type into its unsigned equivalent. For example, assume a trait called to_unsigned_integral such that: to_unsigned_integral<int>::type ---> yields unsigned int to_unsigned_integral<short>::type ---> yields unsigned short to_unsigned_integral<unsigned char>::type ---> yields unsigned char ... Regards, Slawomir