diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-15 07:42:18 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-15 07:42:18 (GMT) |
commit | 0930cd940963be0edfe7c80b4925babca0e01443 (patch) | |
tree | b2a57761bfdf1a14ea75ea1a9871c70d85ff8024 /Swiften/Network/BoostConnection.h | |
parent | d2625df30861a4caa984031a6990d19dfebc3367 (diff) | |
download | swift-contrib-0930cd940963be0edfe7c80b4925babca0e01443.zip swift-contrib-0930cd940963be0edfe7c80b4925babca0e01443.tar.bz2 |
Use shared_ptr for EventLoop owners.
Diffstat (limited to 'Swiften/Network/BoostConnection.h')
-rw-r--r-- | Swiften/Network/BoostConnection.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Swiften/Network/BoostConnection.h b/Swiften/Network/BoostConnection.h index 85de926..76b6588 100644 --- a/Swiften/Network/BoostConnection.h +++ b/Swiften/Network/BoostConnection.h @@ -1,8 +1,10 @@ #pragma once #include <boost/asio.hpp> +#include <boost/enable_shared_from_this.hpp> #include "Swiften/Network/Connection.h" +#include "Swiften/EventLoop/EventOwner.h" namespace boost { class thread; @@ -12,7 +14,7 @@ namespace boost { } namespace Swift { - class BoostConnection : public Connection { + class BoostConnection : public Connection, public EventOwner, public boost::enable_shared_from_this<BoostConnection> { public: BoostConnection(boost::asio::io_service* ioService); ~BoostConnection(); |