From 093900a8f3d2608ff28ba009f16e9c3c689640e8 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 11 Jul 2016 18:25:04 +0300 Subject: [PATCH] [micro] Replaced constructor of singleElement Replaced bracket initializes constructor to simply constructor with two arguments in std::vector --- test/is_palindrome_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/is_palindrome_test.cpp b/test/is_palindrome_test.cpp index b9279c9..2c0f67a 100644 --- a/test/is_palindrome_test.cpp +++ b/test/is_palindrome_test.cpp @@ -42,7 +42,7 @@ struct functorComparator void test_is_palindrome() { const std::list empty; - const std::vector singleElement{'z'}; + const std::vector singleElement(1, 'z'); int oddNonPalindrome[] = {3,2,2}; const int oddPalindrome[] = {1,2,3,2,1}; const int evenPalindrome[] = {1,2,2,1};