From 28f1fe7655b3fd6d63f48339fe441111353ea6f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Tue, 29 Nov 2016 19:14:06 +0100 Subject: [PATCH] added missing const qualifier --- chat_messages.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat_messages.hpp b/chat_messages.hpp index 74db078..7c745c7 100644 --- a/chat_messages.hpp +++ b/chat_messages.hpp @@ -25,6 +25,6 @@ public: chat_message(std::underlying_type::type header_integral, std::string content) :_header(static_cast(header_integral)), _content(content) {} - std::string get() + std::string get() const { return std::to_string(static_cast::type>(_header)) + _content; } };