Add "if constexpr" where possible in Manager
This commit is contained in:
parent
20df53837b
commit
481f223c7d
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ namespace EC
|
|||
Manager()
|
||||
{
|
||||
resize(EC_INIT_ENTITIES_SIZE);
|
||||
if(ThreadCount >= 2) {
|
||||
if constexpr(ThreadCount >= 2) {
|
||||
threadPool = std::make_unique<ThreadPool<ThreadCount> >();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue