use shared_ptr for TunnelPool

This commit is contained in:
orignal 2015-01-19 22:28:13 -05:00
parent e09da5cb54
commit ebb5c53c3a
5 changed files with 25 additions and 30 deletions

View file

@ -6,6 +6,7 @@
#include <vector>
#include <utility>
#include <mutex>
#include <memory>
#include "Identity.h"
#include "LeaseSet.h"
#include "RouterInfo.h"
@ -22,7 +23,7 @@ namespace tunnel
class InboundTunnel;
class OutboundTunnel;
class TunnelPool // per local destination
class TunnelPool: public std::enable_shared_from_this<TunnelPool> // per local destination
{
public: