mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
beast cleanup and tidying:
* Replace custom types with C++11 <cstdint> types * Fix sqlite integer intos and uses * Fix String implicit integer constructors * Escape the enclosing namespace in sqdb * Replace contract checks with assert * Make many header files compile independently * Remove the dependence on beast_core.h in many places * Remove unused or obsolete classes and functions * Remove unused or obsolete macros * Remove unused network functions and files * Remove unused or obsolete classes: - ChildProcess - HighResolutionTimer - InterProcessLock - Throw - TrackedMutex - UntrackedMutex - XmlDocument - XmlElement
This commit is contained in:
@@ -20,12 +20,12 @@
|
||||
#ifndef BEAST_NET_IPADDRESSV6_H_INCLUDED
|
||||
#define BEAST_NET_IPADDRESSV6_H_INCLUDED
|
||||
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <ios>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "../CStdInt.h"
|
||||
|
||||
namespace beast {
|
||||
namespace IP {
|
||||
|
||||
@@ -37,9 +37,9 @@ struct AddressV6
|
||||
/** Arithmetic comparison. */
|
||||
/** @{ */
|
||||
friend bool operator== (AddressV6 const&, AddressV6 const&)
|
||||
{ bassertfalse; return false; }
|
||||
{ assert(false); return false; }
|
||||
friend bool operator< (AddressV6 const&, AddressV6 const&)
|
||||
{ bassertfalse; return false; }
|
||||
{ assert(false); return false; }
|
||||
|
||||
friend bool operator!= (AddressV6 const& lhs, AddressV6 const& rhs)
|
||||
{ return ! (lhs == rhs); }
|
||||
@@ -73,7 +73,7 @@ bool is_public (AddressV6 const& addr);
|
||||
|
||||
/** boost::hash support. */
|
||||
inline std::size_t hash_value (AddressV6 const&)
|
||||
{ bassertfalse; return 0; }
|
||||
{ assert(false); return 0; }
|
||||
|
||||
/** Returns the address represented as a string. */
|
||||
std::string to_string (AddressV6 const& addr);
|
||||
|
||||
Reference in New Issue
Block a user