Re: [Boost-bugs] [Boost C++ Libraries] #7661: lexical_cast throws exception when strings have more than one null terminators

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7661: lexical_cast throws exception when strings have more than one null terminators
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-09 14:32:23


#7661: lexical_cast throws exception when strings have more than one null
terminators
--------------------------------+-------------------------------------------
  Reporter: pengxu7@… | Owner: apolukhin
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: lexical_cast
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------+-------------------------------------------

Comment (by pengxu7@…):

 If you print the std::string starting with 'm' following by multiple null
 terminators in std::cout, you will only see "0" not "0\0". I expect
 boost::lexical_cast to do the same for std::string, does it make sense?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7661#comment:2>
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:11 UTC