added missing const qualifier

This commit is contained in:
Kjistóf 2016-11-29 19:14:06 +01:00
parent 271faf4b0c
commit 28f1fe7655
1 changed files with 1 additions and 1 deletions

View File

@ -25,6 +25,6 @@ public:
chat_message(std::underlying_type<message>::type header_integral, std::string 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; }
};