From 481f223c7da694942822667fd9cd96bf51b95666 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 7 Sep 2021 12:13:28 +0900 Subject: [PATCH] Add "if constexpr" where possible in Manager --- src/EC/Manager.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EC/Manager.hpp b/src/EC/Manager.hpp index 22d757f..bcb0537 100644 --- a/src/EC/Manager.hpp +++ b/src/EC/Manager.hpp @@ -102,7 +102,7 @@ namespace EC Manager() { resize(EC_INIT_ENTITIES_SIZE); - if(ThreadCount >= 2) { + if constexpr(ThreadCount >= 2) { threadPool = std::make_unique >(); } }