Fix C++17 compilation warning

This commit is contained in:
Bruno Herbelin
2022-12-04 13:17:51 +01:00
parent 36bc4944f9
commit e08b6ade9e
5 changed files with 9 additions and 9 deletions

View File

@@ -132,9 +132,9 @@ typedef std::multiset<Node*, z_comparator> NodeSet;
//typedef std::list<Node*> NodeSet;
struct hasId: public std::unary_function<Node*, bool>
struct hasId
{
inline bool operator()(const Node* e) const
constexpr bool operator()(const Node* e) const
{
return (e && e->id() == _id);
}