Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix user defined literal warning #7614

Merged
merged 4 commits into from
Feb 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions bindings/python/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 <auto-ptr>off : <define>BOOST_NO_AUTO_PTR=1 ;

feature cxx98-function-base : off on : composite propagated ;
feature.compose <cxx98-function-base>off : <define>BOOST_NO_CXX98_FUNCTION_BASE=1 ;

# copied from boost 1.63's boost python jamfile
rule find-py3-version
{
Expand Down Expand Up @@ -280,7 +286,11 @@ my-python-extension libtorrent
src/load_torrent.cpp
: # requirements
<include>src
# the bindings will expose deprecated functions, so there's no point in
# warning about referencing them
<toolset>msvc:<cxxflags>/wd4996
<toolset>gcc:<cxxflags>-Wno-deprecated-declarations
<toolset>clang:<cxxflags>-Wno-deprecated-declarations
<toolset>darwin:<cxxflags>-Wno-deprecated-declarations
<toolset>darwin:<cxxflags>-Wno-unused-command-line-argument
<conditional>@libtorrent_linking
Expand All @@ -294,6 +304,8 @@ my-python-extension libtorrent
: # default-build
<warnings>all
<cxxstd>17
<auto-ptr>off
<cxx98-function-base>off
: # usage-requirements
<suppress-import-lib>false
;
Expand Down
2 changes: 1 addition & 1 deletion include/libtorrent/string_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
}
}
Expand Down
Loading