Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52559 - trunk/boost/serialization
From: ghost_at_[hidden]
Date: 2009-04-23 07:11:25


Author: vladimir_prus
Date: 2009-04-23 07:11:24 EDT (Thu, 23 Apr 2009)
New Revision: 52559
URL: http://svn.boost.org/trac/boost/changeset/52559

Log:
Add missing 'inline'. Don't include <exception> when excepetions are disabled.

Text files modified:
   trunk/boost/serialization/throw_exception.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/serialization/throw_exception.hpp
==============================================================================
--- trunk/boost/serialization/throw_exception.hpp (original)
+++ trunk/boost/serialization/throw_exception.hpp 2009-04-23 07:11:24 EDT (Thu, 23 Apr 2009)
@@ -17,7 +17,7 @@
 
 #include <boost/config.hpp>
 
-#ifdef BOOST_NO_EXCEPTIONS
+#ifndef BOOST_NO_EXCEPTIONS
 # include <exception>
 #endif
 
@@ -26,7 +26,7 @@
 
 #ifdef BOOST_NO_EXCEPTIONS
 
-void throw_exception(std::exception const & e) {
+void inline throw_exception(std::exception const & e) {
     ::boost::throw_exception(e);
 }
 


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