made it build in msvc by inserting ; at the end of function try blocks
This commit is contained in:
parent
e9601080bb
commit
1d68e10684
|
@ -774,7 +774,7 @@ namespace libtorrent { namespace detail
|
|||
#ifndef NDEBUG
|
||||
std::string err = exc.what();
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
void session_impl::connection_failed(boost::shared_ptr<socket_type> const& s
|
||||
, tcp::endpoint const& a, char const* message)
|
||||
|
|
|
@ -464,7 +464,7 @@ namespace libtorrent
|
|||
{
|
||||
std::cerr << e.what() << std::endl;
|
||||
assert(false);
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef TORRENT_DISABLE_DHT
|
||||
|
|
10
src/upnp.cpp
10
src/upnp.cpp
|
@ -453,7 +453,7 @@ try
|
|||
catch (std::exception&)
|
||||
{
|
||||
assert(false);
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
void upnp::post(rootdevice& d, std::stringstream const& soap
|
||||
|
@ -687,7 +687,7 @@ void upnp::on_upnp_xml(asio::error_code const& e
|
|||
catch (std::exception&)
|
||||
{
|
||||
disable();
|
||||
}
|
||||
};
|
||||
|
||||
void upnp::disable()
|
||||
{
|
||||
|
@ -890,7 +890,7 @@ void upnp::on_upnp_map_response(asio::error_code const& e
|
|||
catch (std::exception&)
|
||||
{
|
||||
disable();
|
||||
}
|
||||
};
|
||||
|
||||
void upnp::on_upnp_unmap_response(asio::error_code const& e
|
||||
, libtorrent::http_parser const& p, rootdevice& d, int mapping) try
|
||||
|
@ -938,7 +938,7 @@ void upnp::on_upnp_unmap_response(asio::error_code const& e
|
|||
catch (std::exception&)
|
||||
{
|
||||
disable();
|
||||
}
|
||||
};
|
||||
|
||||
void upnp::on_expire(asio::error_code const& e) try
|
||||
{
|
||||
|
@ -976,7 +976,7 @@ void upnp::on_expire(asio::error_code const& e) try
|
|||
catch (std::exception&)
|
||||
{
|
||||
disable();
|
||||
}
|
||||
};
|
||||
|
||||
void upnp::close()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue