removed unnecessary and stupid ctor delegator from chat_message
This commit is contained in:
parent
41221076da
commit
08365c0471
@ -27,10 +27,6 @@ namespace chat
|
|||||||
: _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
|
||||||
{ return byte(_header) + _content + byte(message::TERM); }
|
{ return byte(_header) + _content + byte(message::TERM); }
|
||||||
|
|
||||||
@ -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(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user