Re: [Boost-bugs] [Boost C++ Libraries] #5746: Bugs in lexical_cast<unsigned_char> and <long long>

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5746: Bugs in lexical_cast<unsigned_char> and <long long>
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-12 16:29:31


#5746: Bugs in lexical_cast<unsigned_char> and <long long>
-------------------------------+--------------------------------------------
  Reporter: johnmaddock | Owner: nasonov
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: lexical_cast
   Version: Boost 1.47.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment (by apolukhin):

 lexical_cast library works just like std::stringstream. Lexical conversion
 to char, signed char and unsigned char is simply reading a byte from
 source but since the source has more than one byte, the exception is
 thrown.

 Such situations are described in FAQ, but not very obvious. I'll update
 the FAQ.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5746#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC