From 093900a8f3d2608ff28ba009f16e9c3c689640e8 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 11 Jul 2016 18:25:04 +0300 Subject: [PATCH 1/2] [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}; From 1a34a6935b7694178631d0b06d7bfeedf6f89d61 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 11 Jul 2016 18:26:18 +0300 Subject: [PATCH 2/2] [micro] Added "#include " --- include/boost/algorithm/is_palindrome.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/boost/algorithm/is_palindrome.hpp b/include/boost/algorithm/is_palindrome.hpp index 61acbae..e15e77a 100644 --- a/include/boost/algorithm/is_palindrome.hpp +++ b/include/boost/algorithm/is_palindrome.hpp @@ -16,6 +16,7 @@ #define BOOST_ALGORITHM_IS_PALINDROME_HPP #include +#include #include #include