From 56694b2c1ca8f072f0902a418eb866dc5479e998 Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Sat, 14 Dec 2024 12:35:47 +0000 Subject: [PATCH] fix: make new constructor for cluster explicit --- include/dpp/cluster.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dpp/cluster.h b/include/dpp/cluster.h index 988b9e54b9..144b64b0c5 100644 --- a/include/dpp/cluster.h +++ b/include/dpp/cluster.h @@ -282,7 +282,7 @@ class DPP_EXPORT cluster { * All callbacks and events are placed into the thread pool. The bigger you make this pool (but generally no bigger than your number of cores), the more your bot will scale. * @throw dpp::exception Thrown on windows, if WinSock fails to initialise, or on any other system if a dpp::request_queue fails to construct */ - cluster(uint32_t pool_threads = std::thread::hardware_concurrency() / 2); + explicit cluster(uint32_t pool_threads = std::thread::hardware_concurrency() / 2); /** * @brief Constructor for creating a cluster. All but the token are optional.