Boost logo

Boost Users :

Subject: Re: [Boost-users] lexical_cast<unsigned char>: Compiler error
From: Hansi (hansipet_at_[hidden])
Date: 2009-03-06 10:45:09


Ovanes Markarian schrieb:
> Hi!
>
> strange code... You are trying to convert a 2 byte character string into
> a single byte unsigned character value? Std C++ does not definitely
> provide possibility for it. But if you know how to do the conversion,
> overload the operator >>, which accepsts the istream and unsigned char,
> smth. similar to:
>
The code is not so strange because for me the unsigned char is not a
character but a number...


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