double brace array init

This commit is contained in:
Christopher Mosher 2019-02-02 22:12:46 -05:00
parent e8cdb8975e
commit 76cc7992a9
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class MemoryRow {
bool power = false;
/* 8 sockets for memory chips (empty socket represented by MemoryChipEmptySocket) */
std::array<MemoryChip,8> chips = {MemoryChipEmptySocket(),MemoryChipEmptySocket(),MemoryChipEmptySocket(),MemoryChipEmptySocket(),MemoryChipEmptySocket(),MemoryChipEmptySocket(),MemoryChipEmptySocket(),MemoryChipEmptySocket()};
std::array<MemoryChip,8> chips = {{MemoryChipEmptySocket(),MemoryChipEmptySocket(),MemoryChipEmptySocket(),MemoryChipEmptySocket(),MemoryChipEmptySocket(),MemoryChipEmptySocket(),MemoryChipEmptySocket(),MemoryChipEmptySocket()}};
/* bit mask of empty chip sockets */
std::uint8_t missing_bits = 0xFFu;