diff options
Diffstat (limited to 'server-v1/source/EpistmoolServer/Session.hpp')
-rw-r--r-- | server-v1/source/EpistmoolServer/Session.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server-v1/source/EpistmoolServer/Session.hpp b/server-v1/source/EpistmoolServer/Session.hpp index 931c428..7cce3d1 100644 --- a/server-v1/source/EpistmoolServer/Session.hpp +++ b/server-v1/source/EpistmoolServer/Session.hpp @@ -9,12 +9,13 @@ namespace Epistmool::Server { -struct SessionId -{ +struct SessionId { int index; static SessionId makeInvalid(); bool isInvalid() const; + + bool operator==(const SessionId&) const = default; }; class Session @@ -26,7 +27,7 @@ private: SessionId mSessionId; public: - Session(SessionId id); + explicit Session(SessionId id); SessionId getSessionId() const; const std::vector<ConnectionId>& getConnections() const; |