1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Pass const data by template parameters

This commit is contained in:
ζeh Matt
2021-12-13 03:44:42 +02:00
parent ecfbaec47e
commit a742b49f2c
2 changed files with 48 additions and 38 deletions

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);