removed unnecessary and stupid ctor delegator from chat_message
This commit is contained in:
parent
41221076da
commit
08365c0471
@ -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
|
||||||
@ -43,4 +39,5 @@ 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