From 08365c0471cf516f6d8ada4a1fb42ec92a8f6f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Sun, 4 Dec 2016 20:04:19 +0100 Subject: [PATCH] removed unnecessary and stupid ctor delegator from chat_message --- chat_messages.hpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/chat_messages.hpp b/chat_messages.hpp index ee9dd27..7686304 100644 --- a/chat_messages.hpp +++ b/chat_messages.hpp @@ -24,11 +24,7 @@ namespace chat public: chat_message(message header, std::string content = "") - : _header(header), _content(content) - {} - - chat_message(std::underlying_type::type header_integral, std::string content) - : _header(static_cast(header_integral)), _content(content) + : _header(header), _content(content) {} std::string get() const @@ -43,4 +39,5 @@ namespace chat std::ostream& operator<<(std::ostream& os, const chat_message& msg) { return os << msg.get(); } -} \ No newline at end of file +} +