From d4a15cd9db071ab8e6818876331dd5b356f0d679 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Fri, 2 May 2008 20:51:31 +0000 Subject: [PATCH] tabs removed, added protected inline dtors. [SVN r45042] --- include/boost/exception/detail/cloning_base.hpp | 6 ++++++ include/boost/exception/detail/counted_base.hpp | 6 ++++++ include/boost/exception/info.hpp | 8 ++++---- test/throw_exception_fail.cpp | 8 ++++---- 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/include/boost/exception/detail/cloning_base.hpp b/include/boost/exception/detail/cloning_base.hpp index a7e4db0..946d41d 100644 --- a/include/boost/exception/detail/cloning_base.hpp +++ b/include/boost/exception/detail/cloning_base.hpp @@ -20,6 +20,12 @@ boost public: virtual clone_base const * clone() const = 0; + + protected: + + ~cloning_base() throw() + { + } }; } } diff --git a/include/boost/exception/detail/counted_base.hpp b/include/boost/exception/detail/counted_base.hpp index 4df0589..2dad9ac 100644 --- a/include/boost/exception/detail/counted_base.hpp +++ b/include/boost/exception/detail/counted_base.hpp @@ -31,6 +31,12 @@ boost virtual void add_ref() const=0; virtual void release() const=0; + + protected: + + ~counted_base() throw() + { + } }; } } diff --git a/include/boost/exception/info.hpp b/include/boost/exception/info.hpp index 2661198..c263d54 100644 --- a/include/boost/exception/info.hpp +++ b/include/boost/exception/info.hpp @@ -37,11 +37,11 @@ boost 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() + { + } }; } diff --git a/test/throw_exception_fail.cpp b/test/throw_exception_fail.cpp index 343efd1..19fda91 100644 --- a/test/throw_exception_fail.cpp +++ b/test/throw_exception_fail.cpp @@ -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()); }