except: error::describe shouldn't be noexcept
We can't guarantee noexcept because std::ostream& can be pretty liberal with exceptions.
This commit is contained in:
parent
1f6caaa242
commit
72bd68e60b
@ -22,7 +22,7 @@ namespace cruft {
|
|||||||
class error {
|
class error {
|
||||||
public:
|
public:
|
||||||
virtual ~error () = default;
|
virtual ~error () = default;
|
||||||
virtual std::ostream& describe (std::ostream&) const noexcept = 0;
|
virtual std::ostream& describe (std::ostream&) const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ namespace cruft {
|
|||||||
{ ; }
|
{ ; }
|
||||||
|
|
||||||
std::ostream&
|
std::ostream&
|
||||||
describe (std::ostream &os) const noexcept override
|
describe (std::ostream &os) const override
|
||||||
{
|
{
|
||||||
return os << m_message;
|
return os << m_message;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user