Skip to content

Commit 6f4d74c

Browse files
authored
Merge pull request #108 from denzor200/denzor200-patch-1
Add forgotten `inline` for `is_palindrome`
2 parents 6a5ca4e + 6d58f2b commit 6f4d74c

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)