From 2f75cee3b7fa7bcb5c6ebf12258e6f7a41b83d6d Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Sun, 9 Jun 2024 09:31:13 -0700 Subject: chore: update bind2nd -> bind in comments as well --- src/fluxbox.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 1339197..6acfb23 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -202,7 +202,7 @@ typedef FbTk::SimpleCommand FluxboxCmd; }; Bar bar; - bind2nd(mem_fun(&F::foo), bar); + bind(mem_fn(&F::foo), _1, bar); it complaints about not beeing able to store a reference to a reference (Bar&&). @@ -514,7 +514,7 @@ void Fluxbox::initScreen(BScreen *screen) { // initiate atomhandler for screen specific stuff STLUtil::forAll(m_atomhandler, CallMemFunWithRefArg(&AtomHandler::initForScreen, *screen)); - //STLUtil::forAll(m_atomhandler, bind2nd(mem_fn(&AtomHandler::initForScreen), *screen)); + //STLUtil::forAll(m_atomhandler, bind(mem_fn(&AtomHandler::initForScreen), _1, *screen)); FocusControl::revertFocus(*screen); // make sure focus style is correct -- cgit v0.11.2