From 96a3a34fa4c457b04fb6ce0774bc686624adaa97 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Tue, 14 Oct 2014 10:33:10 -0400 Subject: [PATCH] Gracefully cast from std::thread::hardware_concurrency --- beast/module/core/thread/Workers.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beast/module/core/thread/Workers.h b/beast/module/core/thread/Workers.h index 0fb8daf155..0f54ca3e00 100644 --- a/beast/module/core/thread/Workers.h +++ b/beast/module/core/thread/Workers.h @@ -56,7 +56,8 @@ public: */ explicit Workers (Callback& callback, String const& threadNames = "Worker", - int numberOfThreads = std::thread::hardware_concurrency()); + int numberOfThreads = + static_cast(std::thread::hardware_concurrency())); ~Workers ();