Use lambda, instead of std::bind

Change-Id: I560439ed7307e580ce8a721abdda44ec6f7c502e
diff --git a/src/cli.cpp b/src/cli.cpp
index 63ef4c3..01e504b 100644
--- a/src/cli.cpp
+++ b/src/cli.cpp
@@ -130,8 +130,12 @@
 
     Replxx lineEditor;
 
-    lineEditor.bind_key(Replxx::KEY::meta(Replxx::KEY::BACKSPACE), std::bind(&Replxx::invoke, &lineEditor, Replxx::ACTION::KILL_TO_BEGINING_OF_WORD, std::placeholders::_1));
-    lineEditor.bind_key(Replxx::KEY::control('W'), std::bind(&Replxx::invoke, &lineEditor, Replxx::ACTION::KILL_TO_WHITESPACE_ON_LEFT, std::placeholders::_1));
+    lineEditor.bind_key(Replxx::KEY::meta(Replxx::KEY::BACKSPACE), [&lineEditor] (const auto& code) {
+        return lineEditor.invoke(Replxx::ACTION::KILL_TO_BEGINING_OF_WORD, code);
+    });
+    lineEditor.bind_key(Replxx::KEY::control('W'), [&lineEditor] (const auto& code) {
+        return lineEditor.invoke(Replxx::ACTION::KILL_TO_WHITESPACE_ON_LEFT, code);
+    });
 
     lineEditor.set_word_break_characters("\t _[]/:'\"=-%");