Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73640 - trunk/boost
From: antoshkka_at_[hidden]
Date: 2011-08-10 14:58:07


Author: apolukhin
Date: 2011-08-10 14:58:06 EDT (Wed, 10 Aug 2011)
New Revision: 73640
URL: http://svn.boost.org/trac/boost/changeset/73640

Log:
Fixes #5732.

* suppress compilation warnings, if the compiler requires a return, even when it can never be reached
Text files modified:
   trunk/boost/lexical_cast.hpp | 2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)

Modified: trunk/boost/lexical_cast.hpp
==============================================================================
--- trunk/boost/lexical_cast.hpp (original)
+++ trunk/boost/lexical_cast.hpp 2011-08-10 14:58:06 EDT (Wed, 10 Aug 2011)
@@ -1750,6 +1750,7 @@
                 } catch( ::boost::numeric::bad_numeric_cast const& ) {
                     BOOST_LCAST_THROW_BAD_CAST(Source, Target);
                 }
+ BOOST_UNREACHABLE_RETURN(static_cast<Target>(0));
             }
         };
 
@@ -1776,6 +1777,7 @@
                 } catch( ::boost::numeric::bad_numeric_cast const& ) {
                     BOOST_LCAST_THROW_BAD_CAST(Source, Target);
                 }
+ BOOST_UNREACHABLE_RETURN(static_cast<Target>(0));
             }
         };
 


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