made it build in msvc by inserting ; at the end of function try blocks

This commit is contained in:
Arvid Norberg 2007-05-16 01:17:14 +00:00
parent e9601080bb
commit 1d68e10684
3 changed files with 7 additions and 7 deletions

View File

@ -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)

View File

@ -464,7 +464,7 @@ namespace libtorrent
{
std::cerr << e.what() << std::endl;
assert(false);
}
};
#endif
#ifndef TORRENT_DISABLE_DHT

View File

@ -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()
{