diff --git a/include/umb/message.hpp b/include/umb/message.hpp index 20e258a..96b6ac1 100644 --- a/include/umb/message.hpp +++ b/include/umb/message.hpp @@ -40,7 +40,7 @@ class Message * * @return Serialized message bytes. */ - [[nodiscard]] virtual std::vector to_bytes() const = 0; + [[nodiscard]] virtual std::vector to_bytes() const = 0; /** * Serialize message to UMB wire format. \bytes should be @@ -50,7 +50,7 @@ class Message * @return true if \bytes contains valid UMB wire format * bytes of this message. */ - [[nodiscard]] virtual bool to_bytes(std::span bytes) const = 0; + [[nodiscard]] virtual bool to_bytes(std::span bytes) const = 0; /** * Initialize message from \bytes span containing valid @@ -73,9 +73,7 @@ class Message [[nodiscard]] virtual size_t serialized_size() const = 0; // TODO: reconsider this API. - [[nodiscard]] constexpr virtual uint16_t - - type() const + [[nodiscard]] constexpr virtual uint16_t type() const noexcept = 0;