Open Fgaoxing opened 1 year ago
In file included from ..\..\go\pkg\mod\github.com\yanyiwu\gojieba@v1.3.0\deps/cppjieba/DictTrie.hpp:13, from ..\..\go\pkg\mod\github.com\yanyiwu\gojieba@v1.3.0\deps/cppjieba/QuerySegment.hpp:8, from ..\..\go\pkg\mod\github.com\yanyiwu\gojieba@v1.3.0\deps/cppjieba/Jieba.hpp:4, from jieba.cpp:5: ..\..\go\pkg\mod\github.com\yanyiwu\gojieba@v1.3.0\deps/limonp/StringUtil.hpp: In function 'std::string& limonp::LTrim(std::string&)': ..\..\go\pkg\mod\github.com\yanyiwu\gojieba@v1.3.0\deps/limonp/StringUtil.hpp:87:93: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = unsigned int; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 87 | s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<unsigned, bool>(IsSpace)))); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from C:/Program Files/mingw64/include/c++/13.2.0/bits/stl_tree.h:65, from C:/Program Files/mingw64/include/c++/13.2.0/set:62, from ..\..\go\pkg\mod\github.com\yanyiwu\gojieba@v1.3.0\deps/cppjieba/QuerySegment.hpp:5: C:/Program Files/mingw64/include/c++/13.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ ..\..\go\pkg\mod\github.com\yanyiwu\gojieba@v1.3.0\deps/limonp/StringUtil.hpp:87:64: warning: 'constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = pointer_to_unary_function<unsigned int, bool>]' is deprecated: use 'std::not_fn' instead [-Wdeprecated-declarations] 87 | s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<unsigned, bool>(IsSpace)))); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/Program Files/mingw64/include/c++/13.2.0/bits/stl_function.h:1046:5: note: declared here 1046 | not1(const _Predicate& __pred) | ^~~~ ..\..\go\pkg\mod\github.com\yanyiwu\gojieba@v1.3.0\deps/limonp/StringUtil.hpp: In function 'std::string& limonp::RTrim(std::string&)': ..\..\go\pkg\mod\github.com\yanyiwu\gojieba@v1.3.0\deps/limonp/StringUtil.hpp:92:84: warning: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = unsigned int; _Result = bool]' is deprecated: use 'std::function' instead [-Wdeprecated-declarations] 92 | s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<unsigned, bool>(IsSpace))).base(), s.end()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ C:/Program Files/mingw64/include/c++/13.2.0/bits/stl_function.h:1126:5: note: declared here 1126 | ptr_fun(_Result (*__x)(_Arg)) | ^~~~~~~ ..\..\go\pkg\mod\github.com\yanyiwu\gojieba@v1.3.0\deps/limonp/StringUtil.hpp:92:55: warning: 'constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = pointer_to_unary_function<unsigned int, bool>]' is deprecated: use 'std::not_fn' instead [-Wdeprecated-declarations] 92 | s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<unsigned, bool>(IsSpace))).base(), s.end()); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/Program Files/mingw64/include/c++/13.2.0/bits/stl_function.h:1046:5: note: declared here 1046 | not1(const _Predicate& __pred) | ^~~~ ..\..\go\pkg\mod\github.com\yanyiwu\gojieba@v1.3.0\deps/limonp/StringUtil.hpp: In function 'std::string& limonp::LTrim(std::string&, char)': ..\..\go\pkg\mod\github.com\yanyiwu\gojieba@v1.3.0\deps/limonp/StringUtil.hpp:101:77: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to<char>; _Tp = char]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 101 | s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::bind2nd(std::equal_to<char>(), x)))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from C:/Program Files/mingw64/include/c++/13.2.0/bits/stl_function.h:1438: C:/Program Files/mingw64/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ ..\..\go\pkg\mod\github.com\yanyiwu\gojieba@v1.3.0\deps/limonp/StringUtil.hpp:101:64: warning: 'constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = binder2nd<equal_to<char> >]' is deprecated: use 'std::not_fn' instead [-Wdeprecated-declarations] 101 | s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::bind2nd(std::equal_to<char>(), x)))); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/Program Files/mingw64/include/c++/13.2.0/bits/stl_function.h:1046:5: note: declared here 1046 | not1(const _Predicate& __pred) | ^~~~ ..\..\go\pkg\mod\github.com\yanyiwu\gojieba@v1.3.0\deps/limonp/StringUtil.hpp: In function 'std::string& limonp::RTrim(std::string&, char)': ..\..\go\pkg\mod\github.com\yanyiwu\gojieba@v1.3.0\deps/limonp/StringUtil.hpp:106:68: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = equal_to<char>; _Tp = char]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 106 | s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::bind2nd(std::equal_to<char>(), x))).base(), s.end()); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ C:/Program Files/mingw64/include/c++/13.2.0/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ ..\..\go\pkg\mod\github.com\yanyiwu\gojieba@v1.3.0\deps/limonp/StringUtil.hpp:106:55: warning: 'constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = binder2nd<equal_to<char> >]' is deprecated: use 'std::not_fn' instead [-Wdeprecated-declarations] 106 | s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::bind2nd(std::equal_to<char>(), x))).base(), s.end()); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/Program Files/mingw64/include/c++/13.2.0/bits/stl_function.h:1046:5: note: declared here 1046 | not1(const _Predicate& __pred) | ^~~~
win11 winlibs
在容器化过程中也会出现这个东西
win11 winlibs