Skip to content

Commit f13587e

Browse files
committed
replace bind1st because it is not supported in c++17
Change-Id: I76019f2583601b0ada7808d3bb2be059584f1b0c
1 parent b172aef commit f13587e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pcm-sensor-server.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2218,9 +2218,9 @@ class HTTPHeader {
22182218
while ( ss.good() ) {
22192219
std::getline( ss, s, listSeparatorChar );
22202220
// Remove leading whitespace
2221-
s.erase( s.begin(), std::find_if( s.begin(), s.end(), std::bind1st( std::not_equal_to<char>(), ' ' ) ) );
2221+
s.erase( s.begin(), std::find_if( s.begin(), s.end(), std::bind( std::not_equal_to<char>(), std::placeholders::_1, ' ' ) ) );
22222222
// Remove trailing whitespace
2223-
s.erase( std::find_if( s.rbegin(), s.rend(), std::bind1st( std::not_equal_to<char>(), ' ') ).base(), s.end() );
2223+
s.erase( std::find_if( s.rbegin(), s.rend(), std::bind( std::not_equal_to<char>(), std::placeholders::_1, ' ') ).base(), s.end() );
22242224
elementList.push_back( s );
22252225
}
22262226
return elementList;

0 commit comments

Comments
 (0)