forked from premiere/premiere-libtorrent
fix c++98 mode build
This commit is contained in:
parent
1a4c017ec5
commit
8e1ec2ce69
|
@ -146,7 +146,8 @@ namespace
|
||||||
boost::shared_ptr<torrent_info> buffer_constructor0(char const* buf, int len, int flags)
|
boost::shared_ptr<torrent_info> buffer_constructor0(char const* buf, int len, int flags)
|
||||||
{
|
{
|
||||||
error_code ec;
|
error_code ec;
|
||||||
boost::shared_ptr<torrent_info> ret(boost::make_shared<torrent_info>(buf, len, ec, flags));
|
boost::shared_ptr<torrent_info> ret(boost::make_shared<torrent_info>(buf
|
||||||
|
, len, boost::ref(ec), flags));
|
||||||
#ifndef BOOST_NO_EXCEPTIONS
|
#ifndef BOOST_NO_EXCEPTIONS
|
||||||
if (ec) throw libtorrent_exception(ec);
|
if (ec) throw libtorrent_exception(ec);
|
||||||
#endif
|
#endif
|
||||||
|
@ -161,7 +162,8 @@ boost::shared_ptr<torrent_info> buffer_constructor1(char const* buf, int len)
|
||||||
boost::shared_ptr<torrent_info> file_constructor0(std::string const& filename, int flags)
|
boost::shared_ptr<torrent_info> file_constructor0(std::string const& filename, int flags)
|
||||||
{
|
{
|
||||||
error_code ec;
|
error_code ec;
|
||||||
boost::shared_ptr<torrent_info> ret(boost::make_shared<torrent_info>(filename, ec, flags));
|
boost::shared_ptr<torrent_info> ret(boost::make_shared<torrent_info>(filename
|
||||||
|
, boost::ref(ec), flags));
|
||||||
#ifndef BOOST_NO_EXCEPTIONS
|
#ifndef BOOST_NO_EXCEPTIONS
|
||||||
if (ec) throw libtorrent_exception(ec);
|
if (ec) throw libtorrent_exception(ec);
|
||||||
#endif
|
#endif
|
||||||
|
@ -187,7 +189,8 @@ boost::shared_ptr<torrent_info> bencoded_constructor0(entry const& ent, int flag
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::shared_ptr<torrent_info> ret(boost::make_shared<torrent_info>(e, ec, flags));
|
boost::shared_ptr<torrent_info> ret(boost::make_shared<torrent_info>(e
|
||||||
|
, boost::ref(ec), flags));
|
||||||
#ifndef BOOST_NO_EXCEPTIONS
|
#ifndef BOOST_NO_EXCEPTIONS
|
||||||
if (ec) throw libtorrent_exception(ec);
|
if (ec) throw libtorrent_exception(ec);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue