Skip to content

Commit 6d58f2b

Browse files
authored
Update is_palindrome.hpp
1 parent 6a5ca4e commit 6d58f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/algorithm/is_palindrome.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ bool is_palindrome(const R& range, Predicate p)
113113
/// \note This function will return true for empty sequences and for palindromes.
114114
/// For other sequences function will return false.
115115
/// Complexity: O(N).
116-
bool is_palindrome(const char* str)
116+
inline bool is_palindrome(const char* str)
117117
{
118118
if(!str)
119119
return true;

0 commit comments

Comments
 (0)