mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-08-26 22:02:03 +00:00
quick fix for #387
This commit is contained in:
parent
11155b622f
commit
dd4f5a1769
@ -448,7 +448,7 @@ namespace libtorrent
|
|||||||
#endif // TORRENT_NO_DEPRECATE
|
#endif // TORRENT_NO_DEPRECATE
|
||||||
|
|
||||||
#ifndef TORRENT_DISABLE_DHT
|
#ifndef TORRENT_DISABLE_DHT
|
||||||
bool is_dht_running() const { return m_dht; }
|
bool is_dht_running() const { return m_dht.get(); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if TORRENT_USE_I2P
|
#if TORRENT_USE_I2P
|
||||||
|
@ -67,9 +67,9 @@ namespace libtorrent {
|
|||||||
|
|
||||||
struct TORRENT_EXPORT i2p_error_category : boost::system::error_category
|
struct TORRENT_EXPORT i2p_error_category : boost::system::error_category
|
||||||
{
|
{
|
||||||
virtual const char* name() const;
|
virtual const char* name() const throw();
|
||||||
virtual std::string message(int ev) const;
|
virtual std::string message(int ev) const;
|
||||||
virtual boost::system::error_condition default_error_condition(int ev) const
|
virtual boost::system::error_condition default_error_condition(int ev) const throw()
|
||||||
{ return boost::system::error_condition(ev, *this); }
|
{ return boost::system::error_condition(ev, *this); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -65,9 +65,9 @@ typedef asio::error::error_category socks_error_category;
|
|||||||
|
|
||||||
struct TORRENT_EXTRA_EXPORT socks_error_category : boost::system::error_category
|
struct TORRENT_EXTRA_EXPORT socks_error_category : boost::system::error_category
|
||||||
{
|
{
|
||||||
virtual const char* name() const;
|
virtual const char* name() const throw();
|
||||||
virtual std::string message(int ev) const;
|
virtual std::string message(int ev) const;
|
||||||
virtual boost::system::error_condition default_error_condition(int ev) const
|
virtual boost::system::error_condition default_error_condition(int ev) const throw()
|
||||||
{ return boost::system::error_condition(ev, *this); }
|
{ return boost::system::error_condition(ev, *this); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -888,7 +888,7 @@ namespace libtorrent
|
|||||||
, std::string const& private_key
|
, std::string const& private_key
|
||||||
, std::string const& dh_params
|
, std::string const& dh_params
|
||||||
, std::string const& passphrase);
|
, std::string const& passphrase);
|
||||||
bool is_ssl_torrent() const { return m_ssl_ctx; }
|
bool is_ssl_torrent() const { return m_ssl_ctx.get(); }
|
||||||
boost::asio::ssl::context* ssl_ctx() const { return m_ssl_ctx.get(); }
|
boost::asio::ssl::context* ssl_ctx() const { return m_ssl_ctx.get(); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -80,9 +80,9 @@ namespace libtorrent
|
|||||||
|
|
||||||
struct TORRENT_EXPORT upnp_error_category : boost::system::error_category
|
struct TORRENT_EXPORT upnp_error_category : boost::system::error_category
|
||||||
{
|
{
|
||||||
virtual const char* name() const;
|
virtual const char* name() const throw();
|
||||||
virtual std::string message(int ev) const;
|
virtual std::string message(int ev) const;
|
||||||
virtual boost::system::error_condition default_error_condition(int ev) const
|
virtual boost::system::error_condition default_error_condition(int ev) const throw()
|
||||||
{ return boost::system::error_condition(ev, *this); }
|
{ return boost::system::error_condition(ev, *this); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ namespace libtorrent
|
|||||||
|
|
||||||
i2p_error_category i2p_category;
|
i2p_error_category i2p_category;
|
||||||
|
|
||||||
const char* i2p_error_category::name() const
|
const char* i2p_error_category::name() const throw()
|
||||||
{
|
{
|
||||||
return "i2p error";
|
return "i2p error";
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ namespace libtorrent
|
|||||||
socks_error_category socks_category;
|
socks_error_category socks_category;
|
||||||
|
|
||||||
#if BOOST_VERSION >= 103500
|
#if BOOST_VERSION >= 103500
|
||||||
const char* socks_error_category::name() const
|
const char* socks_error_category::name() const throw()
|
||||||
{
|
{
|
||||||
return "socks error";
|
return "socks error";
|
||||||
}
|
}
|
||||||
|
@ -1099,7 +1099,7 @@ namespace
|
|||||||
#if BOOST_VERSION >= 103500
|
#if BOOST_VERSION >= 103500
|
||||||
|
|
||||||
|
|
||||||
const char* upnp_error_category::name() const
|
const char* upnp_error_category::name() const throw()
|
||||||
{
|
{
|
||||||
return "UPnP error";
|
return "UPnP error";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user