13 Aug
2010
13 Aug
'10
12:13 a.m.
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