diff --git a/chat_messages.hpp b/chat_messages.hpp index c11f8ba..cb2b03e 100644 --- a/chat_messages.hpp +++ b/chat_messages.hpp @@ -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(msg); } + constexpr char byte(message msg) { return static_cast(msg); } class chat_message