diff --git a/beast/http/URL.h b/beast/http/URL.h index d9359df59..d2b01f6e5 100644 --- a/beast/http/URL.h +++ b/beast/http/URL.h @@ -130,9 +130,6 @@ extern std::size_t hash_value (beast::URL const& url); namespace std { -template -struct hash; - template <> struct hash { diff --git a/beast/net/IPAddress.h b/beast/net/IPAddress.h index ef2616fae..c67a31179 100644 --- a/beast/net/IPAddress.h +++ b/beast/net/IPAddress.h @@ -26,16 +26,6 @@ #include "../CStdInt.h" -namespace std { - -template -struct hash; - -//template <> -//struct hash ; - -} - //------------------------------------------------------------------------------ namespace beast { @@ -400,9 +390,6 @@ inline bool IPAddress::EqualWithoutPort::operator() ( namespace std { -template -struct hash; - template <> struct hash { diff --git a/beast/threads/impl/ServiceQueue.cpp b/beast/threads/impl/ServiceQueue.cpp index 7f62cc3cb..9fe3bf452 100644 --- a/beast/threads/impl/ServiceQueue.cpp +++ b/beast/threads/impl/ServiceQueue.cpp @@ -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 > threads;