Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3rd_party/alphanum/alphanum.hpp:298:38: error: no template named 'binary_function' in namespace 'std'; did you mean '__binary_function'? #727

Closed
yurivict opened this issue Jul 10, 2023 · 4 comments

Comments

@yurivict
Copy link

Build failure with clang-16 which now defaults to c++20.
std::binary_function has been deprecated in c++17, and you don't set the -std=c++xx argument, so the sources are treated as c++20.

Please define the C++ level in your makefiles, and remove deprecated functions.

Version: 2.5.0
FreeBSD 14

@carrotIndustries
Copy link
Member

and you don't set the -std=c++xx argument

I do, so what's not working?

CXXFLAGS += $(DEBUGFLAGS) $(DEFINES) $(OPTIMIZE) $(PKG_CONFIG_LIBS) -MP -MD -pthread $(WARNFLAGS) -std=c++17

@yurivict
Copy link
Author

yurivict commented Jul 10, 2023

std::binary_function is deprecated in c++17.
This means the C++ code is invalid: it uses a non-existent feature.

@carrotIndustries
Copy link
Member

@yurivict
Copy link
Author

Thanks!

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

No branches or pull requests

2 participants