Boost logo

Boost Users :

Subject: Re: [Boost-users] [conversion] lexical_cast doesn't throw
From: Rob Riggs (rob_at_[hidden])
Date: 2010-08-12 20:13:54


  On 08/04/2010 06:48 AM, Gaetano Mendola wrote:
> Hi all,
> I'm in the process to migrate our application from RedHat 5.5 (gcc 4.1.2) to Ubuntu
> 10.04 (gcc 4.4.3), one regression test is not passing due the fact that lexical_cast
> is not throwing, this is the line:
>
> unsigned int myNumber = boost::lexical_cast<unsigned int>("-123");
>

https://bugzilla.redhat.com/show_bug.cgi?id=531919
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39802

It appears that it was a change in the implementation of the num_put()
function in the GNU standard C++ library for GCC 4.4.

FWIW, the new behavior isn't what I want or expect from a lexical
conversion operator either.

Rob


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