removed unnecessary and stupid ctor delegator from chat_message
This commit is contained in:
		@@ -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(); }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user