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];