mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 23:15:52 +00:00
Refactoring of container usage:
* New ripple container aliases use hardened_hash * Use std::tuple instead of boost::tuple * Use std unordered containers instead of boost * Fix Destroyer for new containers * Fix warning for fnv1a on 32-bit arch * Validator fixes for new containers
This commit is contained in:
committed by
Vinnie Falco
parent
8f5b4a6c96
commit
fdfcebd1cb
@@ -21,6 +21,7 @@
|
||||
#define BEAST_NET_IPENDPOINT_H_INCLUDED
|
||||
|
||||
#include "IPAddress.h"
|
||||
#include "../container/hash_append.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <ios>
|
||||
@@ -91,6 +92,15 @@ public:
|
||||
{ return ! (rhs > lhs); }
|
||||
/** @} */
|
||||
|
||||
template <class Hasher>
|
||||
friend
|
||||
void
|
||||
hash_append (Hasher& h, Endpoint const& endpoint)
|
||||
{
|
||||
using beast::hash_append;
|
||||
hash_append(h, endpoint.m_addr, endpoint.m_port);
|
||||
}
|
||||
|
||||
private:
|
||||
Address m_addr;
|
||||
Port m_port;
|
||||
|
||||
Reference in New Issue
Block a user