Skip to content

Fix compilation with clang-15#21

Closed
dimula73 wants to merge 1 commit into
boostorg:developfrom
dimula73:kazakov/fix-compilation-clang-15
Closed

Fix compilation with clang-15#21
dimula73 wants to merge 1 commit into
boostorg:developfrom
dimula73:kazakov/fix-compilation-clang-15

Conversation

@dimula73
Copy link
Copy Markdown

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

std::unary_function and std::binary_function are removed from the
standard in C++17.
@glenfe
Copy link
Copy Markdown
Member

glenfe commented Apr 13, 2023

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.

@alvinhochun
Copy link
Copy Markdown

For reference, BOOST_NO_CXX98_FUNCTION_BASE is defined in:
boostorg/config@0e364ef
boostorg/config#430
boostorg/config#440

@JIghtuse
Copy link
Copy Markdown

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

@dimula73
Copy link
Copy Markdown
Author

An alternative patch was merged, I will just close the PR.

@dimula73 dimula73 closed this Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants