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;