protocol/Ack: add noexcept
This commit is contained in:
parent
eb94f409d5
commit
95d8b30864
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user