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");

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.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at