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
1 changed files with 3 additions and 6 deletions

View File

@ -24,11 +24,7 @@ namespace chat
public:
chat_message(message header, std::string 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)
: _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(); }
}
}