made byte(message) helper method constexpr so it is compile time

This commit is contained in:
Kjistóf 2016-12-03 14:22:49 +01:00
parent faaea542ce
commit 36f0aca693
1 changed files with 1 additions and 1 deletions

View File

@ -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