Skip to content

std::binary_function deprecated #66

@anyzelman

Description

@anyzelman

During a standard build with GCC 14.3.1:

[ 96%] Building C object src/core-libraries/CMakeFiles/lpf_hl_debug.dir/rpc-client.c.o
In file included from /home/yzelman/Documents/lpf/examples/list/lpf_list.hpp:21,
                 from /home/yzelman/Documents/lpf/examples/list/list_test.cpp:27:
/home/yzelman/Documents/lpf/examples/list/lpf.hpp:1175:26: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
 1175 |     struct min_op : std::binary_function<T, T, T> {
      |                          ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:49,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from /home/yzelman/Documents/lpf/examples/list/list_test.cpp:21:
/usr/include/c++/14/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
/home/yzelman/Documents/lpf/examples/list/lpf.hpp:1180:26: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
 1180 |     struct max_op : std::binary_function<T, T, T> {
      |                          ^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
[ 97%] Linking CXX static library libbsplib.a
In file included from /home/yzelman/Documents/lpf/examples/list/lpf_list.hpp:22:
/home/yzelman/Documents/lpf/examples/list/lpf_sort.hpp:33:16: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
   33 |         : std::binary_function< std::pair< T, lpf_pid_t >,
      |                ^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions