added missing const qualifier

This commit is contained in:
Kjistóf 2016-11-29 19:14:06 +01:00
parent 271faf4b0c
commit 28f1fe7655

View File

@ -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; }
}; };