summaryrefslogtreecommitdiffstats
path: root/indexlib/ifile.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2024-04-12 15:23:05 +0200
committerSlávek Banko <slavek.banko@axis.cz>2024-04-12 15:57:34 +0200
commitd77e599ffae91b697a57f56a9d29223cb6a52063 (patch)
treef411a5e873e39e26b77c964ed7bb9fd2812d7e50 /indexlib/ifile.cpp
parent9a6cea11e93d2a7e26995d8d98119ae04e46efa9 (diff)
downloadtdepim-d77e599ffae91b697a57f56a9d29223cb6a52063.tar.gz
tdepim-d77e599ffae91b697a57f56a9d29223cb6a52063.zip
Fix compatibility with C++17.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 3d5bff624aa23bdf6521d15449b385558fff5a8d)
Diffstat (limited to 'indexlib/ifile.cpp')
-rw-r--r--indexlib/ifile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indexlib/ifile.cpp b/indexlib/ifile.cpp
index 8ef5d2c6..43057433 100644
--- a/indexlib/ifile.cpp
+++ b/indexlib/ifile.cpp
@@ -169,7 +169,7 @@ std::vector<std::string> ifile::break_clean( const char* complete ) const {
std::sort( words.begin(), words.end() );
words.erase( std::unique( words.begin(), words.end() ), words.end() );
words.erase( std::remove_if( words.begin(), words.end(), &ifile::invalid_word ), words.end() );
- words.erase( std::remove_if( words.begin(), words.end(), std::bind1st( std::mem_fun( &ifile::is_stop_word ), this ) ), words.end() );
+ words.erase( std::remove_if( words.begin(), words.end(), std::bind( std::mem_fn( &ifile::is_stop_word ), this, std::placeholders::_1 ) ), words.end() );
return words;
}