From c315141d36437fe39092dfb4ebd755b0689de3be Mon Sep 17 00:00:00 2001 From: Gary Miguel Date: Fri, 17 Nov 2023 17:22:18 -0800 Subject: [PATCH] remove reference to std::unary_function It is not part of c++17 and this code is supposed to build as c++17. See https://en.cppreference.com/w/cpp/utility/functional/unary_function. --- include/irrUString.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/irrUString.h b/include/irrUString.h index 49cc67044..bd026e070 100644 --- a/include/irrUString.h +++ b/include/irrUString.h @@ -3678,7 +3678,7 @@ namespace unicode //! Hashing algorithm for hashing a ustring. Used for things like unordered_maps. //! Algorithm taken from std::hash. -class hash : public std::unary_function +class hash { public: size_t operator()(const core::ustring& s) const