[Boost-bugs] [Boost C++ Libraries] #4595: boost::lexical_cast throws std::bad_cast on OS X 10.6 when using _GLIBCXX_DEBUG

Subject: [Boost-bugs] [Boost C++ Libraries] #4595: boost::lexical_cast throws std::bad_cast on OS X 10.6 when using _GLIBCXX_DEBUG
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-08-25 20:01:34


#4595: boost::lexical_cast throws std::bad_cast on OS X 10.6 when using
_GLIBCXX_DEBUG
-----------------------------------+----------------------------------------
 Reporter: etlverified@… | Owner: nasonov
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: lexical_cast
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
-----------------------------------+----------------------------------------
 I'm on Snow Leopard, using the default compiler i686-apple-
 darwin10-gcc-4.2.1

 I compile the following test code with -D_GLIBCXX_DEBUG
 {{{
 #!cpp
 unsigned int x = 3;
 std::string s = boost::lexical_cast<std::string>(x);
 }}}

 When executed, the program terminates with the output
 {{{
 terminate called after throwing an instance of 'std::bad_cast'
   what(): std::bad_cast
 Abort trap
 }}}

 The code runs fine when _GLIBCXX_DEBUG is not defined

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