X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0ec122a780b6dd27347cca4d240de563e607f349..e6ca184e99d50d0ee8fe405a83ee5277e2ecfce6:/src/mc/mc_dwarf.cpp 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 */