Opened 9 months ago
Last modified 9 months ago
#69024 assigned defect
qt5*-qtbase: error: no template named ('unary_function'|'binary_function') in namespace 'std' — at Initial Version
Reported by: | chrstphrchvz (Christopher Chavez) | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | qt53-qtbase qt55-qtbase qt56-qtbase qt57-qtbase qt58-qtbase qt59-qtbase |
Description
std::unary_function
and std::binary_function
from libc++ are deprecated in the macOS 13 SDK, and disabled by default in LLVM.org Clang 15 and the macOS 14 SDK when building with C++17 or later (unless _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION
is defined). Example:
compress.cpp:40:26: error: no template named 'binary_function' in namespace 'std'; did you mean '__binary_function'? struct _Fit: public std::binary_function<int, int, bool> ~~~~~^~~~~~~~~~~~~~~ __binary_function
Note: See
TracTickets for help on using
tickets.