Pass const data by template parameters

This commit is contained in:
ζeh Matt committed 2021-12-13 05:05:12 +02:00
1 parent ecfbaec47e
commit a742b49f2c
2 files changed
+48 -38

No files matched your search

+1 -1
View File
@@ -103,7 +103,7 @@ TEST(BitTest, test_big)
ASSERT_EQ(bits.data()[3], ~0ULL);
#else
static_assert(std::is_same_v<decltype(bits)::block_type, uint32_t>);
static_assert(bits.data().size() ==);
static_assert(bits.data().size() == 8);
ASSERT_EQ(bits.data()[0], ~0UL);
ASSERT_EQ(bits.data()[1], ~0UL);
ASSERT_EQ(bits.data()[2], ~0UL);