diff options
Diffstat (limited to 'gr-blocks/lib')
-rw-r--r-- | gr-blocks/lib/packed_to_unpacked_impl.h | 4 | ||||
-rw-r--r-- | gr-blocks/lib/unpacked_to_packed_impl.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gr-blocks/lib/packed_to_unpacked_impl.h b/gr-blocks/lib/packed_to_unpacked_impl.h index e49f02fa0e..26667680d1 100644 --- a/gr-blocks/lib/packed_to_unpacked_impl.h +++ b/gr-blocks/lib/packed_to_unpacked_impl.h @@ -37,8 +37,8 @@ private: const unsigned int d_bits_per_chunk; const endianness_t d_endianness; unsigned int d_index; - const unsigned int d_bits_per_type = sizeof(T) * 8; - const unsigned int d_log2_l_type = log2_const<sizeof(T) * 8>(); + static constexpr unsigned int d_bits_per_type = sizeof(T) * 8; + static constexpr unsigned int d_log2_l_type = log2_const<sizeof(T) * 8>(); unsigned int get_bit_le(const T* in_vector, unsigned int bit_addr); unsigned int get_bit_be(const T* in_vector, unsigned int bit_addr); diff --git a/gr-blocks/lib/unpacked_to_packed_impl.h b/gr-blocks/lib/unpacked_to_packed_impl.h index 50398aee8c..978dc606f9 100644 --- a/gr-blocks/lib/unpacked_to_packed_impl.h +++ b/gr-blocks/lib/unpacked_to_packed_impl.h @@ -36,7 +36,7 @@ private: const unsigned int d_bits_per_chunk; const endianness_t d_endianness; unsigned int d_index; - const unsigned int d_bits_per_type = sizeof(T) * 8; + static constexpr unsigned int d_bits_per_type = sizeof(T) * 8; unsigned int get_bit_be1(const T* in_vector, unsigned int bit_addr, unsigned int bits_per_chunk); |