[Boost-bugs] [Boost C++ Libraries] #5557: lexical_cast<int>("+2") failure

Subject: [Boost-bugs] [Boost C++ Libraries] #5557: lexical_cast<int>("+2") failure
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-05-21 22:32:39


#5557: lexical_cast<int>("+2") failure
-------------------------------------+--------------------------------------
 Reporter: rwgk | Owner: apolukhin
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: lexical_cast
  Version: Boost Development Trunk | Severity: Regression
 Keywords: |
-------------------------------------+--------------------------------------
 boost svn trunk revision 72056 breaks

 lexical_cast<int>("+2")

 on all platforms we have (g++ 3.2 through 4.6, Visual C++ 8.0 through
 10.0, Intel C++ 9 through 11).

 I will attach a small reproducer. With g++ 4.4.4 I get:

 terminate called after throwing an instance of
 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast>
>'
   what(): bad lexical cast: source type value could not be interpreted as
 target

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5557>
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:06 UTC