From 0084149c3d39d8b9562106d9bc46864e499d866a Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Sat, 29 Jun 2013 20:24:39 +0300 Subject: Constify the type passed to std::equal_to. std::bind2nd() has problems with the existing call because it uses the argument type passed to std::equal_to() in std::binder2nd()'s constructor, but WinClient* does not have the const specifier that `client' does. The call works fine with libstdc++ because of the way it implements std::bind2nd(), but fails with libc++ and possibly with other STL implementations as well. --- src/fluxbox.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 4ef6a67..8305b8a 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -1359,7 +1359,7 @@ bool Fluxbox::validateClient(const WinClient *client) const { WinClientMap::const_iterator it = find_if(m_window_search.begin(), m_window_search.end(), - Compose(bind2nd(equal_to(), client), + Compose(bind2nd(equal_to(), client), Select2nd())); return it != m_window_search.end(); } -- cgit v0.11.2