From 6d58f2b9d1a8e377d407b6c68ec2b8d21a205301 Mon Sep 17 00:00:00 2001 From: Denis Mikhailov Date: Wed, 12 Oct 2022 19:53:19 +0600 Subject: [PATCH] Update is_palindrome.hpp --- include/boost/algorithm/is_palindrome.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/algorithm/is_palindrome.hpp b/include/boost/algorithm/is_palindrome.hpp index 8e1df18..531f82e 100644 --- a/include/boost/algorithm/is_palindrome.hpp +++ b/include/boost/algorithm/is_palindrome.hpp @@ -113,7 +113,7 @@ bool is_palindrome(const R& range, Predicate p) /// \note This function will return true for empty sequences and for palindromes. /// For other sequences function will return false. /// Complexity: O(N). -bool is_palindrome(const char* str) +inline bool is_palindrome(const char* str) { if(!str) return true;