You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2022/09/27 07:07:14 UTC

[GitHub] [trafficserver] masaori335 commented on pull request #8684: Fix warnings from GCC 12.0.1

masaori335 commented on PR #8684:
URL: https://github.com/apache/trafficserver/pull/8684#issuecomment-1259075910

   It looks like LLVM-15 removed the function. We need to backport this for release branches.
   
   ```
   ../../include/tscore/IntrusivePtr.h:333:29: error: no template named 'binary_function' in namespace 'std'; did you mean '__binary_function'?
     class Order : public std::binary_function<IntrusivePtr<T>, IntrusivePtr<T>, bool>
                          ~~~~~^~~~~~~~~~~~~~~
                               __binary_function
   /usr/local/opt/llvm/include/c++/v1/__functional/binary_function.h:49:1: note: '__binary_function' declared here
   using __binary_function = __binary_function_keep_layout_base<_Arg1, _Arg2, _Result>;
   ^
   ```
   
   BTW, std::binay_function was "deprecated in C++11" and "removed in C++17".
   https://en.cppreference.com/w/cpp/utility/functional/binary_function


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org