summaryrefslogtreecommitdiffstats
path: root/indexlib
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:23:05 +0200
commit3d5bff624aa23bdf6521d15449b385558fff5a8d (patch)
tree845dc251b82ec3f8fc3080c9d92e06d9aac8a7b9 /indexlib
parent32a1708de3fa27aa6b434c6cdb7b540edda9eef2 (diff)
downloadtdepim-3d5bff624aa23bdf6521d15449b385558fff5a8d.tar.gz
tdepim-3d5bff624aa23bdf6521d15449b385558fff5a8d.zip
Fix compatibility with C++17.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'indexlib')
-rw-r--r--indexlib/ifile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indexlib/ifile.cpp b/indexlib/ifile.cpp
index 8ef5d2c6b..430574339 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;
}