From f79aa07339e7ad57a9752c8c3742caa39ac5131f Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Tue, 30 Jul 2024 12:14:58 +0200 Subject: [PATCH] remove std::unary_function std::unary_function is useless and was removed in C++17. --- src/parser/factories/sequence.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/factories/sequence.cc b/src/parser/factories/sequence.cc index a9cd82e..d12ab4e 100644 --- a/src/parser/factories/sequence.cc +++ b/src/parser/factories/sequence.cc @@ -40,7 +40,7 @@ namespace hpp { namespace manipulation { namespace parser { namespace { -struct StringIsEmpty : public std::unary_function { +struct StringIsEmpty { bool operator()(std::string s) const { return s.empty(); } };