mirror of
https://github.com/boostorg/exception.git
synced 2025-07-13 04:26:44 +02:00
tabs removed, added protected inline dtors.
[SVN r45042]
This commit is contained in:
@ -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()
|
||||||
|
{
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
|
{
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user