mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +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
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "IPAddressV4.h"
|
||||
#include "IPAddressV6.h"
|
||||
#include "../container/hash_append.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <ios>
|
||||
@@ -136,6 +137,18 @@ public:
|
||||
return m_v6;
|
||||
}
|
||||
|
||||
template <class Hasher>
|
||||
friend
|
||||
void
|
||||
hash_append(Hasher& h, Address const& addr)
|
||||
{
|
||||
using beast::hash_append;
|
||||
if (addr.is_v4 ())
|
||||
hash_append(h, addr.to_v4 ());
|
||||
else
|
||||
hash_append(h, addr.to_v6 ());
|
||||
}
|
||||
|
||||
/** Arithmetic comparison. */
|
||||
/** @{ */
|
||||
friend
|
||||
|
||||
Reference in New Issue
Block a user