From 2c4a090185241a839c893d5322c03d41c2b1a757 Mon Sep 17 00:00:00 2001 From: mariusbancila Date: Mon, 18 Dec 2017 23:33:44 +0200 Subject: [PATCH] braces in array init --- test/test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test.cpp b/test/test.cpp index 3b046c1..aa6118f 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -47,13 +47,13 @@ int main() { std::cout << "Test std::array constructor" << std::endl; - std::array arr{ + std::array arr{{ 0x47, 0x18, 0x38, 0x23, 0x25, 0x74, 0x4b, 0xfd, 0xb4, 0x11, 0x99, 0xed, 0x17, 0x7d, 0x3e, 0x43 - }; + }}; using namespace std::string_literals; @@ -172,13 +172,13 @@ int main() { std::cout << "Test iterators" << std::endl; - std::array arr{ + std::array arr{{ 0x47, 0x18, 0x38, 0x23, 0x25, 0x74, 0x4b, 0xfd, 0xb4, 0x11, 0x99, 0xed, 0x17, 0x7d, 0x3e, 0x43 - }; + }}; uuid guid; assert(guid.nil());