made byte(message) helper method constexpr so it is compile time
This commit is contained in:
parent
faaea542ce
commit
36f0aca693
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user