added missing const qualifier
This commit is contained in:
parent
271faf4b0c
commit
28f1fe7655
@ -25,6 +25,6 @@ public:
|
|||||||
chat_message(std::underlying_type<message>::type header_integral, std::string content)
|
chat_message(std::underlying_type<message>::type header_integral, std::string content)
|
||||||
:_header(static_cast<message>(header_integral)), _content(content) {}
|
:_header(static_cast<message>(header_integral)), _content(content) {}
|
||||||
|
|
||||||
std::string get()
|
std::string get() const
|
||||||
{ return std::to_string(static_cast<std::underlying_type<message>::type>(_header)) + _content; }
|
{ return std::to_string(static_cast<std::underlying_type<message>::type>(_header)) + _content; }
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user