added default constructor to session_proxy

This commit is contained in:
Arvid Norberg 2006-10-15 13:46:52 +00:00
parent 6727dfaed7
commit 4d94c7574c
3 changed files with 14 additions and 2 deletions

View File

@ -327,7 +327,12 @@ destruction of the session is performed from the <tt class="docutils literal"><s
on it (since the session is being closed down, no operations are allowed on it). The
only valid operation is calling the destructor:</p>
<pre class="literal-block">
class session_proxy { ~session_proxy() };
class session_proxy
{
public:
session_proxy();
~session_proxy()
};
</pre>
</div>
<div class="section" id="add-torrent">

View File

@ -175,7 +175,12 @@ destruction of the session is performed from the ``session`` destructor call unt
on it (since the session is being closed down, no operations are allowed on it). The
only valid operation is calling the destructor::
class session_proxy { ~session_proxy() };
class session_proxy
{
public:
session_proxy();
~session_proxy()
};
add_torrent()

View File

@ -109,6 +109,8 @@ namespace libtorrent
class TORRENT_EXPORT session_proxy
{
friend class session;
public:
session_proxy() {}
private:
session_proxy(boost::shared_ptr<aux::session_impl> impl)
: m_impl(impl) {}