-
- /// copy session including old id
- Session(const Session &s) : m_id(s.m_id), m_close(s.m_close) {};
-
- //Session& operator=(const Session &);
+
+ /// copy session including old id
+ Session(const Session &s) : m_id(s.m_id), m_close(s.m_close) {};
+
+ Session& operator=(const Session &s) {
+ if (this != &s)
+ {
+ m_id = s.m_id;
+ m_close = s.m_close;
+ }
+ return *this;
+ }