tag/Mask: add static_assert on the size of the mask
This commit is contained in:
parent
49130c2018
commit
f3c37e484e
|
@ -26,6 +26,11 @@
|
|||
|
||||
class TagMask {
|
||||
typedef uint_least32_t mask_t;
|
||||
|
||||
/* the mask must have enough bits to represent all tags
|
||||
supported by MPD */
|
||||
static_assert(TAG_NUM_OF_ITEM_TYPES <= sizeof(mask_t) * 8);
|
||||
|
||||
mask_t value;
|
||||
|
||||
explicit constexpr TagMask(uint_least32_t _value) noexcept
|
||||
|
|
Loading…
Reference in New Issue