From 971cda2e4c5695a80363de841b9294b06fdbe4d2 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 1 Nov 2021 01:45:15 +0200 Subject: [PATCH] Avoid -Wmissing-braces in swap_array_of_template.cpp --- test/swap/swap_array_of_template.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/swap/swap_array_of_template.cpp b/test/swap/swap_array_of_template.cpp index c0e76e3..1ec33fd 100644 --- a/test/swap/swap_array_of_template.cpp +++ b/test/swap/swap_array_of_template.cpp @@ -50,8 +50,8 @@ void swap(swap_test_template& left, swap_test_template& right) int main() { const std::size_t array_size = 2; - const swap_test_template initial_array1[array_size] = { swap_test_class(1), swap_test_class(2) }; - const swap_test_template initial_array2[array_size] = { swap_test_class(3), swap_test_class(4) }; + const swap_test_template initial_array1[array_size] = { { swap_test_class(1) }, { swap_test_class(2) } }; + const swap_test_template initial_array2[array_size] = { { swap_test_class(3) }, { swap_test_class(4) } }; swap_test_template array1[array_size]; swap_test_template array2[array_size];