Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59664 - trunk/boost
From: Alexander.Nasonov_at_[hidden]
Date: 2010-02-12 20:24:34


Author: nasonov
Date: 2010-02-12 20:24:34 EST (Fri, 12 Feb 2010)
New Revision: 59664
URL: http://svn.boost.org/trac/boost/changeset/59664

Log:
Use BOOST_LCAST_THROW_BAD_CAST consistently.
Text files modified:
   trunk/boost/lexical_cast.hpp | 8 ++------
   1 files changed, 2 insertions(+), 6 deletions(-)

Modified: trunk/boost/lexical_cast.hpp
==============================================================================
--- trunk/boost/lexical_cast.hpp (original)
+++ trunk/boost/lexical_cast.hpp 2010-02-12 20:24:34 EST (Fri, 12 Feb 2010)
@@ -1149,7 +1149,7 @@
 
             Target result;
             if(!(interpreter << arg && interpreter >> result))
- BOOST_LCAST_THROW_BAD_CAST(Source, Target);
+ BOOST_LCAST_THROW_BAD_CAST(Source, Target);
             return result;
         }
 #if (defined _MSC_VER)
@@ -1191,11 +1191,7 @@
         Target result;
 
         if(!(interpreter << arg && interpreter >> result))
-#ifndef BOOST_NO_TYPEID
- throw_exception(bad_lexical_cast(typeid(Source), typeid(Target)));
-#else
- throw_exception(bad_lexical_cast());
-#endif
+ BOOST_LCAST_THROW_BAD_CAST(Source, Target);
         return result;
     }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk