From 4d94c7574c56593e082c092308d711b12363048e Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 15 Oct 2006 13:46:52 +0000 Subject: [PATCH] added default constructor to session_proxy --- docs/manual.html | 7 ++++++- docs/manual.rst | 7 ++++++- include/libtorrent/session.hpp | 2 ++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/manual.html b/docs/manual.html index e8b901aa5..4a009d977 100755 --- a/docs/manual.html +++ b/docs/manual.html @@ -327,7 +327,12 @@ destruction of the session is performed from the
-class session_proxy { ~session_proxy() };
+class session_proxy
+{
+public:
+        session_proxy();
+        ~session_proxy()
+};
 
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) {}