From 8e1ec2ce691425ca5443bb28c4633abfa82c52be Mon Sep 17 00:00:00 2001 From: arvidn Date: Sat, 25 Jul 2015 20:19:34 -0700 Subject: [PATCH] fix c++98 mode build --- bindings/python/src/torrent_info.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bindings/python/src/torrent_info.cpp b/bindings/python/src/torrent_info.cpp index c81918be2..4a16641a8 100644 --- a/bindings/python/src/torrent_info.cpp +++ b/bindings/python/src/torrent_info.cpp @@ -146,7 +146,8 @@ namespace boost::shared_ptr buffer_constructor0(char const* buf, int len, int flags) { error_code ec; - boost::shared_ptr ret(boost::make_shared(buf, len, ec, flags)); + boost::shared_ptr ret(boost::make_shared(buf + , len, boost::ref(ec), flags)); #ifndef BOOST_NO_EXCEPTIONS if (ec) throw libtorrent_exception(ec); #endif @@ -161,7 +162,8 @@ boost::shared_ptr buffer_constructor1(char const* buf, int len) boost::shared_ptr file_constructor0(std::string const& filename, int flags) { error_code ec; - boost::shared_ptr ret(boost::make_shared(filename, ec, flags)); + boost::shared_ptr ret(boost::make_shared(filename + , boost::ref(ec), flags)); #ifndef BOOST_NO_EXCEPTIONS if (ec) throw libtorrent_exception(ec); #endif @@ -187,7 +189,8 @@ boost::shared_ptr bencoded_constructor0(entry const& ent, int flag #endif } - boost::shared_ptr ret(boost::make_shared(e, ec, flags)); + boost::shared_ptr ret(boost::make_shared(e + , boost::ref(ec), flags)); #ifndef BOOST_NO_EXCEPTIONS if (ec) throw libtorrent_exception(ec); #endif