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:
Danny Robson 2019-02-02 15:35:44 +11:00
parent 1f6caaa242
commit 72bd68e60b

View File

@ -22,7 +22,7 @@ namespace cruft {
class error {
public:
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&
describe (std::ostream &os) const noexcept override
describe (std::ostream &os) const override
{
return os << m_message;
}