Boost logo

Boost-Commit :

From: emil_at_[hidden]
Date: 2008-05-02 16:51:31


Author: emildotchevski
Date: 2008-05-02 16:51:31 EDT (Fri, 02 May 2008)
New Revision: 45042
URL: http://svn.boost.org/trac/boost/changeset/45042

Log:
tabs removed, added protected inline dtors.
Text files modified:
   trunk/boost/exception/detail/cloning_base.hpp | 6 ++++++
   trunk/boost/exception/detail/counted_base.hpp | 6 ++++++
   trunk/boost/exception/info.hpp | 8 ++++----
   trunk/libs/exception/test/throw_exception_fail.cpp | 8 ++++----
   4 files changed, 20 insertions(+), 8 deletions(-)

Modified: trunk/boost/exception/detail/cloning_base.hpp
==============================================================================
--- trunk/boost/exception/detail/cloning_base.hpp (original)
+++ trunk/boost/exception/detail/cloning_base.hpp 2008-05-02 16:51:31 EDT (Fri, 02 May 2008)
@@ -20,6 +20,12 @@
             public:
 
             virtual clone_base const * clone() const = 0;
+
+ protected:
+
+ ~cloning_base() throw()
+ {
+ }
             };
         }
     }

Modified: trunk/boost/exception/detail/counted_base.hpp
==============================================================================
--- trunk/boost/exception/detail/counted_base.hpp (original)
+++ trunk/boost/exception/detail/counted_base.hpp 2008-05-02 16:51:31 EDT (Fri, 02 May 2008)
@@ -31,6 +31,12 @@
 
             virtual void add_ref() const=0;
             virtual void release() const=0;
+
+ protected:
+
+ ~counted_base() throw()
+ {
+ }
             };
         }
     }

Modified: trunk/boost/exception/info.hpp
==============================================================================
--- trunk/boost/exception/info.hpp (original)
+++ trunk/boost/exception/info.hpp 2008-05-02 16:51:31 EDT (Fri, 02 May 2008)
@@ -37,11 +37,11 @@
             virtual std::type_info const & tag_typeid() const = 0;
             virtual std::string value_as_string() const = 0;
 
- protected:
+ protected:
 
- ~error_info_base()
- {
- }
+ ~error_info_base()
+ {
+ }
             };
         }
 

Modified: trunk/libs/exception/test/throw_exception_fail.cpp
==============================================================================
--- trunk/libs/exception/test/throw_exception_fail.cpp (original)
+++ trunk/libs/exception/test/throw_exception_fail.cpp 2008-05-02 16:51:31 EDT (Fri, 02 May 2008)
@@ -7,12 +7,12 @@
 
 struct
 my_exception
- {
- };
+ {
+ };
 
 void
 tester()
     {
- //Must not compile, throw_exception requires exception types to derive std::exception.
- boost::throw_exception(my_exception());
+ //Must not compile, throw_exception requires exception types to derive std::exception.
+ boost::throw_exception(my_exception());
     }


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