Fix Clang compile and link errors

This commit is contained in:
NATTSiM
2014-01-14 08:38:59 -08:00
committed by Vinnie Falco
parent dda419ddd6
commit bd0f4b95ae
3 changed files with 2 additions and 17 deletions

View File

@@ -130,9 +130,6 @@ extern std::size_t hash_value (beast::URL const& url);
namespace std {
template <typename T>
struct hash;
template <>
struct hash <beast::URL>
{

View File

@@ -26,16 +26,6 @@
#include "../CStdInt.h"
namespace std {
template <typename T>
struct hash;
//template <>
//struct hash <beast::IPAddress>;
}
//------------------------------------------------------------------------------
namespace beast {
@@ -400,9 +390,6 @@ inline bool IPAddress::EqualWithoutPort::operator() (
namespace std {
template <typename T>
struct hash;
template <>
struct hash <beast::IPAddress>
{

View File

@@ -437,10 +437,11 @@ public:
}
};
static int const callsPerThread = 10000;
static std::size_t const totalCalls = 10000;
void testThreads (std::size_t n)
{
std::size_t const callsPerThread (totalCalls / n);
beginTestCase (String::fromNumber (n) + " threads");
ServiceQueue service (n);
std::vector <ScopedPointer <ServiceThread> > threads;