Fixing bug in exception_ptr cloning of error_info objects.

This commit is contained in:
Emil Dotchevski
2017-03-15 11:39:42 -07:00
parent 10550b69d4
commit 991d600f01
3 changed files with 44 additions and 3 deletions

View File

@ -29,8 +29,7 @@ boost
public:
virtual std::string name_value_string() const = 0;
protected:
virtual error_info_base * clone() const = 0;
virtual
~error_info_base() throw()
@ -44,6 +43,11 @@ boost
error_info:
public exception_detail::error_info_base
{
error_info_base *
clone() const
{
return new error_info<Tag,T>(*this);
}
public:
typedef T value_type;
error_info( value_type const & v ):