From 3d5bff624aa23bdf6521d15449b385558fff5a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 12 Apr 2024 15:23:05 +0200 Subject: Fix compatibility with C++17. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- indexlib/ifile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indexlib') 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 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; } -- cgit v1.2.1