diff --git a/include/boost/algorithm/is_palindrome.hpp b/include/boost/algorithm/is_palindrome.hpp index 0080e60..d341eb7 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 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};