Add an extra pair of braces around constexpr std::array

pull/8858/head
Adam Cozzette 3 years ago
parent 2fd5c96f4d
commit 64e9f1b5c7
  1. 4
      src/google/protobuf/descriptor.cc

@ -993,12 +993,12 @@ class TableArena {
to_relocate->PrependTo(full_blocks_);
}
static constexpr std::array<uint8_t, 6> kSmallSizes = {
static constexpr std::array<uint8_t, 6> kSmallSizes = {{
// Sizes for pointer arrays.
8, 16, 24, 32,
// Sizes for string arrays (for descriptor names).
// The most common array sizes are 2 and 3.
2 * sizeof(std::string), 3 * sizeof(std::string)};
2 * sizeof(std::string), 3 * sizeof(std::string)}};
// Helper function to iterate all lists.
std::array<Block*, 2 + kSmallSizes.size()> GetLists() const {

Loading…
Cancel
Save