From 64e9f1b5c7830079d6da2147d374248dd5008322 Mon Sep 17 00:00:00 2001 From: Adam Cozzette Date: Wed, 4 Aug 2021 07:41:13 -0700 Subject: [PATCH] Add an extra pair of braces around constexpr std::array --- src/google/protobuf/descriptor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/google/protobuf/descriptor.cc b/src/google/protobuf/descriptor.cc index 408caf8da6..31335290db 100644 --- a/src/google/protobuf/descriptor.cc +++ b/src/google/protobuf/descriptor.cc @@ -993,12 +993,12 @@ class TableArena { to_relocate->PrependTo(full_blocks_); } - static constexpr std::array kSmallSizes = { + static constexpr std::array 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 GetLists() const {