Skip to content

Commit

Permalink
Avoid using obsoleted std::unary_function
Browse files Browse the repository at this point in the history
It is removed in C++17 as deemed not necessary.
  • Loading branch information
shirok committed Oct 7, 2024
1 parent 2fec7e8 commit 0b64c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mqueue-cpp/mqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <functional>
#include <algorithm>

class MQueue_eq : public unary_function<MQueue*, bool> {
class MQueue_eq {
string name;
public:
explicit MQueue_eq(const string& name_) : name(name_) {}
Expand Down

0 comments on commit 0b64c6a

Please sign in to comment.