C++03 bound functions are not available in C++17; remove
This makes me a little sad, it's time to move to C++11 or greater.
This commit is contained in:
@@ -127,11 +127,6 @@ bool Complete::operator==( Complete const &x ) const
|
||||
return (terminal == x.terminal) && (echo_ack == x.echo_ack);
|
||||
}
|
||||
|
||||
static bool old_ack(uint64_t newest_echo_ack, const pair<uint64_t, uint64_t> p)
|
||||
{
|
||||
return p.first < newest_echo_ack;
|
||||
}
|
||||
|
||||
bool Complete::set_echo_ack( uint64_t now )
|
||||
{
|
||||
bool ret = false;
|
||||
@@ -145,7 +140,15 @@ bool Complete::set_echo_ack( uint64_t now )
|
||||
}
|
||||
}
|
||||
|
||||
input_history.remove_if( bind1st( ptr_fun( old_ack ), newest_echo_ack ) );
|
||||
for ( input_history_type::const_iterator i = input_history.begin();
|
||||
i != input_history.end(); ) {
|
||||
input_history_type::const_iterator i_next = i;
|
||||
i_next++;
|
||||
if ( i->first < newest_echo_ack ) {
|
||||
input_history.erase( i );
|
||||
}
|
||||
i = i_next;
|
||||
}
|
||||
|
||||
if ( echo_ack != newest_echo_ack ) {
|
||||
ret = true;
|
||||
|
||||
Reference in New Issue
Block a user