diff --git a/beast/net/IPEndpoint.h b/beast/net/IPEndpoint.h index e9075a3ac2..1852297179 100644 --- a/beast/net/IPEndpoint.h +++ b/beast/net/IPEndpoint.h @@ -324,6 +324,8 @@ public: } }; + struct key_equal; + private: Type m_type; uint16 m_port; @@ -363,6 +365,14 @@ std::istream& operator>> (std::istream& is, IPEndpoint& ep); //std::istream& operator>> (std::istream &is, IPEndpoint::V6&); /** @} */ +struct IPEndpoint::key_equal +{ + bool operator() (IPEndpoint const& lhs, IPEndpoint const& rhs) const + { + return lhs == rhs; + } +}; + } #endif