Skip to content

Commit 0f5136d

Browse files
committed
Merged branch feature_branch/is_palindromic into feature_branch/is_palindromic
2 parents 774fb43 + 1a34a69 commit 0f5136d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/boost/algorithm/is_palindrome.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#define BOOST_ALGORITHM_IS_PALINDROME_HPP
1717

1818
#include <iterator>
19+
#include <functional>
1920

2021
#include <boost/range/begin.hpp>
2122
#include <boost/range/end.hpp>

test/is_palindrome_test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct functorComparator
4242
void test_is_palindrome()
4343
{
4444
const std::list<int> empty;
45-
const std::vector<char> singleElement{'z'};
45+
const std::vector<char> singleElement(1, 'z');
4646
int oddNonPalindrome[] = {3,2,2};
4747
const int oddPalindrome[] = {1,2,3,2,1};
4848
const int evenPalindrome[] = {1,2,2,1};

0 commit comments

Comments
 (0)