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)
|
||||
{
|
||||
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
|
||||
if (ec) throw libtorrent_exception(ec);
|
||||
#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)
|
||||
{
|
||||
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
|
||||
if (ec) throw libtorrent_exception(ec);
|
||||
#endif
|
||||
|
@ -187,7 +189,8 @@ boost::shared_ptr<torrent_info> bencoded_constructor0(entry const& ent, int flag
|
|||
#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
|
||||
if (ec) throw libtorrent_exception(ec);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue