functional icon indicating copy to clipboard operation
functional copied to clipboard

Fix compilation with clang-15

Open dimula73 opened this issue 2 years ago • 3 comments

std::unary_function and std::binary_function are removed from the standard in C++17.

dimula73 avatar Feb 16 '23 12:02 dimula73

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.

glenfe avatar Apr 13 '23 04:04 glenfe

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

alvinhochun avatar Apr 13 '23 15:04 alvinhochun

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++.

JIghtuse avatar Jun 21 '23 05:06 JIghtuse