diff --git a/src/protocol/Ack.hxx b/src/protocol/Ack.hxx index 6a1ee8129..d2ddd2627 100644 --- a/src/protocol/Ack.hxx +++ b/src/protocol/Ack.hxx @@ -49,10 +49,10 @@ class ProtocolError : public std::runtime_error { public: template - ProtocolError(enum ack _code, M &&msg) + ProtocolError(enum ack _code, M &&msg) noexcept :std::runtime_error(std::forward(msg)), code(_code) {} - enum ack GetCode() const { + enum ack GetCode() const noexcept { return code; } };