Skip to content

Commit 858ed42

Browse files
committed
common/bit_vector: use static_assert() instead of BOOST_STATIC_ASSERT()
Signed-off-by: Max Kellermann <[email protected]>
1 parent 2caa47b commit 858ed42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/bit_vector.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class BitVector
2929
static const uint8_t MASK = static_cast<uint8_t>((1 << _bit_count) - 1);
3030

3131
// must be power of 2
32-
BOOST_STATIC_ASSERT((_bit_count != 0) && !(_bit_count & (_bit_count - 1)));
33-
BOOST_STATIC_ASSERT(_bit_count <= BITS_PER_BYTE);
32+
static_assert((_bit_count != 0) && !(_bit_count & (_bit_count - 1)));
33+
static_assert(_bit_count <= BITS_PER_BYTE);
3434

3535
template <typename DataIterator>
3636
class ReferenceImpl {

0 commit comments

Comments
 (0)