diff --git a/bindings/python/Jamfile b/bindings/python/Jamfile index 281ec247ca7..2f27ab846c6 100644 --- a/bindings/python/Jamfile +++ b/bindings/python/Jamfile @@ -31,6 +31,12 @@ feature python-install-path : : free path ; # the python module in the system directory or user-specifc directory feature python-install-scope : user system : ; +feature auto-ptr : off on : composite propagated ; +feature.compose off : BOOST_NO_AUTO_PTR=1 ; + +feature cxx98-function-base : off on : composite propagated ; +feature.compose off : BOOST_NO_CXX98_FUNCTION_BASE=1 ; + # copied from boost 1.63's boost python jamfile rule find-py3-version { @@ -280,7 +286,11 @@ my-python-extension libtorrent src/load_torrent.cpp : # requirements src + # the bindings will expose deprecated functions, so there's no point in + # warning about referencing them + msvc:/wd4996 gcc:-Wno-deprecated-declarations + clang:-Wno-deprecated-declarations darwin:-Wno-deprecated-declarations darwin:-Wno-unused-command-line-argument @libtorrent_linking @@ -294,6 +304,8 @@ my-python-extension libtorrent : # default-build all 17 + off + off : # usage-requirements false ; diff --git a/include/libtorrent/string_view.hpp b/include/libtorrent/string_view.hpp index 53b93e00547..35f4c633979 100644 --- a/include/libtorrent/string_view.hpp +++ b/include/libtorrent/string_view.hpp @@ -19,7 +19,7 @@ using std::wstring_view; inline namespace literals { - constexpr string_view operator "" _sv(char const* str, std::size_t len) + constexpr string_view operator ""_sv(char const* str, std::size_t len) { return string_view(str, len); } } }