From 9d1452447481d45344a1e33446ad9a418e9ea64f Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 11 Jun 2025 19:55:25 +0800 Subject: internal: fully discard the use of uintptr_t for identification use --- src/chatManager.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/chatManager.hpp') diff --git a/src/chatManager.hpp b/src/chatManager.hpp index b48dcdb..227ef6c 100644 --- a/src/chatManager.hpp +++ b/src/chatManager.hpp @@ -5,15 +5,17 @@ #include #include +class CSession; + class CChatManager { public: CChatManager(); ~CChatManager(); struct SMessage { - std::string msg; - std::string username; - std::optional sender = std::nullopt; // cant include session to use CSession* cause circular dependency - bool admin = false; + std::string msg; + std::string username; + std::optional> sender = std::nullopt; + bool admin = false; }; void newMessage(const SMessage &msg); std::string fmtBroadcastMessage(const SMessage &msg); -- cgit v1.2.3