made byte(message) helper method constexpr so it is compile time
This commit is contained in:
		@@ -14,7 +14,7 @@ namespace chat
 | 
			
		||||
        PING = 6, PONG = 7, BYE = 8,
 | 
			
		||||
        LOGIN = 9, LOGOUT = 10, TERM = 0x7f
 | 
			
		||||
    };
 | 
			
		||||
    char byte(message msg) { return static_cast<char>(msg); }
 | 
			
		||||
    constexpr char byte(message msg) { return static_cast<char>(msg); }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    class chat_message
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user