Boost logo

Boost Users :

Subject: Re: [Boost-users] lexical_cast<unsigned char>: Compiler error
From: Hansi (hansipet_at_[hidden])
Date: 2009-03-08 12:50:26


haracter but a number...
>
>
> IMO this is strange, because you cut from the number a part, which might
> contain useful data and C++ prevents you from that. Why don't you
> convert it to wchar_t or unsigned short? L"..." produces multi byte char
> string.

Maybe it is hard to understand,but I don't need the character or wchar_t
but for me the string represents a number...the number has nothing to do
with the character but signed char and unsigned char is the only
representation for 8bit numbers in c++...for that I don't cut anything
if the number does not exceeds the limits of a 8bit number...

Regards
Hansjörg


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net