MXS-1502: Derive EqualPointees from std::unary_function

This is done to make it clear that the class is intended to be used as an
unary function.
This commit is contained in:
Markus Mäkelä
2018-04-03 14:54:35 +03:00
parent 6a481ca21e
commit 221658299d

View File

@ -14,6 +14,7 @@
#include <maxscale/cppdefs.hh>
#include <stdio.h>
#include <functional>
#include <tr1/unordered_map>
namespace maxscale
@ -277,7 +278,7 @@ bool equal_pointees(const Ptr& lhs, const Ptr& rhs)
// Unary predicate for equality of pointed-to objects
template<typename T>
class EqualPointees
class EqualPointees : public std::unary_function<T, bool>
{
public:
EqualPointees(const T& lhs) : m_ppLhs(&lhs) {}