diff --git a/docs/manual.rst b/docs/manual.rst
index 257d7a797..ae150329a 100755
--- a/docs/manual.rst
+++ b/docs/manual.rst
@@ -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()
diff --git a/include/libtorrent/session.hpp b/include/libtorrent/session.hpp
index 168d504c8..d62d69493 100755
--- a/include/libtorrent/session.hpp
+++ b/include/libtorrent/session.hpp
@@ -109,6 +109,8 @@ namespace libtorrent
class TORRENT_EXPORT session_proxy
{
friend class session;
+ public:
+ session_proxy() {}
private:
session_proxy(boost::shared_ptr
impl)
: m_impl(impl) {}