summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/unpacked_to_packed_impl.h
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2019-12-21 19:22:20 +0000
committerMartin Braun <martin.braun@ettus.com>2020-01-06 15:38:02 -0800
commitc7f95a96b93baccb6c92795fc1d261789b4f21a6 (patch)
tree0510426f791fc86ceeda7f2b3bdbec7d943ff29f /gr-blocks/lib/unpacked_to_packed_impl.h
parent2c2c65656197596b8455ae0813c3c80cea023406 (diff)
gr-blocks/packed&unpacked: More constexpr
Diffstat (limited to 'gr-blocks/lib/unpacked_to_packed_impl.h')
-rw-r--r--gr-blocks/lib/unpacked_to_packed_impl.h2
1 files changed, 1 insertions, 1 deletions
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);