https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104591
Bug ID: 104591 Summary: Problem with unary_function Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lukaszcz18 at wp dot pl Target Milestone: --- I use library vvenc c++14 https://github.com/fraunhoferhhi/vvenc/commit/69469d7ac5de882d9f5e12b24ee87f376df20262 or jvetvvc c++11 https://vcgit.hhi.fraunhofer.de/jvet/VVCSoftware_VTM/-/commit/ab0bea02235bb876c9d3bd8a9d3b2fca7ad1b8eb and https://github.com/Jamaika1/mingw_std_threads and http://msystem.waw.pl/x265/mingw-gcc1201-20220206.7z In file included from Unit.h:53, from AdaptiveLoopFilter.h:54: Common.h:184:41: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations] 184 | struct hash<vvenc::Position> : public unary_function<vvenc::Position, uint64_t> | ^~~~~~~~~~~~~~ In file included from c:\msys1200\include\c++\12.0.1\string:48, from c:\msys1200\include\c++\12.0.1\bits\locale_classes.h:40, from c:\msys1200\include\c++\12.0.1\bits\ios_base.h:41, from c:\msys1200\include\c++\12.0.1\ios:42, from c:\msys1200\include\c++\12.0.1\ostream:38, from c:\msys1200\include\c++\12.0.1\iostream:39, from CommonDef.h:53: c:\msys1200\include\c++\12.0.1\bits\stl_function.h:117:12: note: declared here 117 | struct unary_function | ^~~~~~~~~~~~~~