Avoid shadowing, fix formatting.

This commit is contained in:
Kevin Ring 2024-06-18 16:14:27 +10:00
parent 62d4346190
commit 91dc6cdb93
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ public:
auto end() const { return this->_values.end(); }
private:
template <typename ElementType> friend class PropertyArrayView;
template <typename T> friend class PropertyArrayView;
std::vector<ElementType> _values;
};

View File

@ -1277,7 +1277,7 @@ TEST_CASE("Check matN PropertyTablePropertyView (normalized)") {
}
TEST_CASE("Check boolean PropertyTablePropertyView") {
std::bitset<sizeof(unsigned long) * CHAR_BIT> bits = 0b11110101;
std::bitset<sizeof(unsigned long)* CHAR_BIT> bits = 0b11110101;
unsigned long val = bits.to_ulong();
std::vector<std::byte> data(sizeof(val));
std::memcpy(data.data(), &val, sizeof(val));