removed unnecessary and stupid ctor delegator from chat_message

This commit is contained in:
Kjistóf 2016-12-04 20:04:19 +01:00
parent 41221076da
commit 08365c0471

View File

@ -24,11 +24,7 @@ namespace chat
public: public:
chat_message(message header, std::string content = "") chat_message(message header, std::string content = "")
: _header(header), _content(content) : _header(header), _content(content)
{}
chat_message(std::underlying_type<message>::type header_integral, std::string content)
: _header(static_cast<message>(header_integral)), _content(content)
{} {}
std::string get() const std::string get() const
@ -44,3 +40,4 @@ namespace chat
std::ostream& operator<<(std::ostream& os, const chat_message& msg) std::ostream& operator<<(std::ostream& os, const chat_message& msg)
{ return os << msg.get(); } { return os << msg.get(); }
} }