From 8bc9aa33bfae6d6242f7064dbb96f066f882c969 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Wed, 14 Mar 2012 02:55:44 -0400 Subject: [PATCH] Remove boost::lambda from completeterminal.cc --- src/statesync/completeterminal.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/statesync/completeterminal.cc b/src/statesync/completeterminal.cc index 9f8f97c..d022e5c 100644 --- a/src/statesync/completeterminal.cc +++ b/src/statesync/completeterminal.cc @@ -16,8 +16,6 @@ along with this program. If not, see . */ -#include - #include "completeterminal.h" #include "fatal_assert.h" @@ -27,7 +25,6 @@ using namespace std; using namespace Parser; using namespace Terminal; using namespace HostBuffers; -using namespace boost::lambda; string Complete::act( const string &str ) { @@ -106,6 +103,11 @@ 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 p) +{ + return p.first < newest_echo_ack; +} + bool Complete::set_echo_ack( uint64_t now ) { bool ret = false; @@ -119,7 +121,7 @@ bool Complete::set_echo_ack( uint64_t now ) } } - input_history.remove_if( (&_1)->*&pair::first < newest_echo_ack ); + input_history.remove_if( bind1st( ptr_fun( old_ack ), newest_echo_ack ) ); if ( echo_ack != newest_echo_ack ) { ret = true;