tabs removed, added protected inline dtors.

[SVN r45042]
This commit is contained in:
Emil Dotchevski
2008-05-02 20:51:31 +00:00
parent e1056d2f4a
commit d4a15cd9db
4 changed files with 20 additions and 8 deletions

View File

@ -20,6 +20,12 @@ boost
public: public:
virtual clone_base const * clone() const = 0; virtual clone_base const * clone() const = 0;
protected:
~cloning_base() throw()
{
}
}; };
} }
} }

View File

@ -31,6 +31,12 @@ boost
virtual void add_ref() const=0; virtual void add_ref() const=0;
virtual void release() const=0; virtual void release() const=0;
protected:
~counted_base() throw()
{
}
}; };
} }
} }

View File

@ -37,11 +37,11 @@ boost
virtual std::type_info const & tag_typeid() const = 0; virtual std::type_info const & tag_typeid() const = 0;
virtual std::string value_as_string() const = 0; virtual std::string value_as_string() const = 0;
protected: protected:
~error_info_base() ~error_info_base()
{ {
} }
}; };
} }

View File

@ -7,12 +7,12 @@
struct struct
my_exception my_exception
{ {
}; };
void void
tester() tester()
{ {
//Must not compile, throw_exception requires exception types to derive std::exception. //Must not compile, throw_exception requires exception types to derive std::exception.
boost::throw_exception(my_exception()); boost::throw_exception(my_exception());
} }