add default NULL ctor to session_handle

This commit is contained in:
Steven Siloti 2015-08-01 15:48:32 -07:00
parent 8a1d668914
commit 30e43a6595
1 changed files with 4 additions and 0 deletions

View File

@ -65,10 +65,14 @@ namespace libtorrent
struct TORRENT_EXPORT session_handle
{
session_handle() : m_impl(NULL) {}
session_handle(aux::session_impl* impl)
: m_impl(impl)
{}
bool is_valid() const { return m_impl; }
// TODO: 2 the ip filter should probably be saved here too
// flags that determines which aspects of the session should be