Core/Bitset: Make use of if constexpr

This commit is contained in:
Lynix 2020-02-24 18:49:43 +01:00
parent 2f102ac242
commit 269190bb75
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ namespace Nz
Bitset<Block, Allocator>::Bitset(T value) :
Bitset()
{
if (sizeof(T) <= sizeof(Block))
if constexpr (sizeof(T) <= sizeof(Block))
{
m_bitCount = BitCount<T>();
m_blocks.push_back(static_cast<Block>(value));