diff --git a/src/Adapter.hh b/src/Adapter.hh index 566b1bd..32096c0 100644 --- a/src/Adapter.hh +++ b/src/Adapter.hh @@ -65,7 +65,11 @@ namespace pEp { class Session { public: Session(); - + Session(const Session &) = delete; + Session(const Session &&) = delete; + Session operator=(const Session &) = delete; + Session operator=(const Session &&) = delete; + ~Session() = default; // Initialize() // Initializes the session and registers the CallbackDispatcher as callbacks // @@ -110,10 +114,6 @@ namespace pEp { // re-creates the session using same values void refresh(); - // Not copyable - Session(const Session &) = delete; - Session operator=(const Session &) = delete; - void release(); PEP_SESSION operator()();