Core/Bitset: Make use of if constexpr
This commit is contained in:
parent
2f102ac242
commit
269190bb75
|
|
@ -119,7 +119,7 @@ namespace Nz
|
||||||
Bitset<Block, Allocator>::Bitset(T value) :
|
Bitset<Block, Allocator>::Bitset(T value) :
|
||||||
Bitset()
|
Bitset()
|
||||||
{
|
{
|
||||||
if (sizeof(T) <= sizeof(Block))
|
if constexpr (sizeof(T) <= sizeof(Block))
|
||||||
{
|
{
|
||||||
m_bitCount = BitCount<T>();
|
m_bitCount = BitCount<T>();
|
||||||
m_blocks.push_back(static_cast<Block>(value));
|
m_blocks.push_back(static_cast<Block>(value));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue