From 1a8cffddf383872b84d0df9acef5662e02189f2b Mon Sep 17 00:00:00 2001 From: rtk0c Date: Mon, 27 Jun 2022 00:15:35 +0000 Subject: (From git) Update code style, misc clean up git-svn-id: file:///home/arch/svn/epistmool/trunk@6 71f44415-077c-4ad7-a976-72ddbf76608f --- server-v1/source/EpistmoolServer/Session.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'server-v1/source/EpistmoolServer/Session.hpp') 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& getConnections() const; -- cgit v1.2.3-70-g09d2