Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70219 - trunk/tools/quickbook/src
From: dnljms_at_[hidden]
Date: 2011-03-20 05:36:36


Author: danieljames
Date: 2011-03-20 05:36:34 EDT (Sun, 20 Mar 2011)
New Revision: 70219
URL: http://svn.boost.org/trac/boost/changeset/70219

Log:
Quickbook: fix definition of exceptions.
Text files modified:
   trunk/tools/quickbook/src/post_process.hpp | 4 ++--
   trunk/tools/quickbook/src/values.hpp | 4 ++--
   2 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/tools/quickbook/src/post_process.hpp
==============================================================================
--- trunk/tools/quickbook/src/post_process.hpp (original)
+++ trunk/tools/quickbook/src/post_process.hpp 2011-03-20 05:36:34 EDT (Sun, 20 Mar 2011)
@@ -19,10 +19,10 @@
       , int indent = -1
       , int linewidth = -1);
 
- class post_process_failure : std::runtime_error
+ class post_process_failure : public std::runtime_error
     {
     public:
- post_process_failure(std::string const& error)
+ explicit post_process_failure(std::string const& error)
             : std::runtime_error(error) {}
     };
 }

Modified: trunk/tools/quickbook/src/values.hpp
==============================================================================
--- trunk/tools/quickbook/src/values.hpp (original)
+++ trunk/tools/quickbook/src/values.hpp 2011-03-20 05:36:34 EDT (Sun, 20 Mar 2011)
@@ -273,10 +273,10 @@
     // Value Error
     //
     
- class value_error : std::logic_error
+ class value_error : public std::logic_error
     {
     public:
- value_error(std::string const&);
+ explicit value_error(std::string const&);
     };
 
     ////////////////////////////////////////////////////////////////////////////


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