From 95eee0b36fbbb7837e2ad458f49ede74141435cf Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Tue, 8 Mar 2016 10:02:20 +0100 Subject: [PATCH] [mc] Horrid double braces for std::array This is needed in C++11 (not in C++14). --- src/mc/mc_dwarf.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mc/mc_dwarf.cpp b/src/mc/mc_dwarf.cpp index a8f58bbee5..7a754a496f 100644 --- a/src/mc/mc_dwarf.cpp +++ b/src/mc/mc_dwarf.cpp @@ -1065,7 +1065,9 @@ static char hexdigits[16] = { static inline std::array to_hex(std::uint8_t byte) { - return { hexdigits[byte >> 4], hexdigits[byte & 0xF] }; + // Horrid double braces! + // Apparently, this is needed in C++11 (not in C++14). + return { { hexdigits[byte >> 4], hexdigits[byte & 0xF] } }; } /** Binary data to hexadecimal */ -- 2.30.2