if constexpr

This commit is contained in:
seshWCS 2023-09-05 12:33:51 +00:00
parent 221919f46c
commit 3d078e2c8c

View File

@ -98,7 +98,7 @@ void compressDataForType(const char * source, UInt32 source_size, char * dest)
unalignedStore<T>(dest, gcd_divider); unalignedStore<T>(dest, gcd_divider);
dest += sizeof(T); dest += sizeof(T);
if (sizeof(T) <= 8) if constexpr (sizeof(T) <= 8)
{ {
/// libdivide support only UInt32 and UInt64. /// libdivide support only UInt32 and UInt64.
using LibdivideT = std::conditional_t<sizeof(T) <= 4, UInt32, UInt64>; using LibdivideT = std::conditional_t<sizeof(T) <= 4, UInt32, UInt64>;