Merge pull request #61 from ssiloti/master

add default NULL ctor to session_handle
This commit is contained in:
Arvid Norberg 2015-08-01 19:41:03 -04:00
commit 4b1d3485ab
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