functional
functional copied to clipboard
Fix compilation with clang-15
std::unary_function and std::binary_function are removed from the standard in C++17.
I think we should just define these unconditionally for now. I can take care of it, for 1.83. If needed we can provide a patch for clang 15 users for 1.82 on the website.
For reference, BOOST_NO_CXX98_FUNCTION_BASE
is defined in:
https://github.com/boostorg/config/commit/0e364efe0b2397cffd952dbaf80577609bf1058f
https://github.com/boostorg/config/pull/430
https://github.com/boostorg/config/pull/440
Please fix it, it breaks parts of boost which depend on functional. See this example with multi_array
: user needs to pass weird -D_HAS_AUTO_PTR_ETC=0
to fix compilation with Clang + libc++.