Commit 95d8b308 authored by Max Kellermann's avatar Max Kellermann

protocol/Ack: add `noexcept`

parent eb94f409
...@@ -49,10 +49,10 @@ class ProtocolError : public std::runtime_error { ...@@ -49,10 +49,10 @@ class ProtocolError : public std::runtime_error {
public: public:
template<typename M> template<typename M>
ProtocolError(enum ack _code, M &&msg) ProtocolError(enum ack _code, M &&msg) noexcept
:std::runtime_error(std::forward<M>(msg)), code(_code) {} :std::runtime_error(std::forward<M>(msg)), code(_code) {}
enum ack GetCode() const { enum ack GetCode() const noexcept {
return code; return code;
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment