Remove boost::hash_value() overloads.

This addresses https://ripplelabs.atlassian.net/browse/RIPD-102
This commit is contained in:
Howard Hinnant
2014-07-02 12:37:13 -04:00
committed by Nik Bougalis
parent 0c5c901222
commit f5eb22253d
8 changed files with 31 additions and 57 deletions

View File

@@ -22,6 +22,7 @@
#include <cassert>
#include <cstdint>
#include <functional>
#include <ios>
#include <string>
#include <utility>
@@ -78,10 +79,6 @@ hash_append(Hasher&, AddressV6 const&)
assert(false);
}
/** boost::hash support. */
inline std::size_t hash_value (AddressV6 const&)
{ assert(false); return 0; }
/** Returns the address represented as a string. */
std::string to_string (AddressV6 const& addr);
@@ -104,7 +101,7 @@ template <>
struct hash <beast::IP::AddressV6>
{
std::size_t operator() (beast::IP::AddressV6 const& addr) const
{ return hash_value (addr); }
{ assert(false); return 0; }
};
}