aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2013-06-29 17:24:39 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2013-07-03 12:29:39 (GMT)
commit0084149c3d39d8b9562106d9bc46864e499d866a (patch)
tree73f899d3a26b354b88790d78aa8046af20ebbc58 /src
parentf464f24eb3a5872404f60356009f466d5f79f2b1 (diff)
downloadfluxbox-0084149c3d39d8b9562106d9bc46864e499d866a.zip
fluxbox-0084149c3d39d8b9562106d9bc46864e499d866a.tar.bz2
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.
Diffstat (limited to 'src')
-rw-r--r--src/fluxbox.cc2
1 files changed, 1 insertions, 1 deletions
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 {
1359 WinClientMap::const_iterator it = 1359 WinClientMap::const_iterator it =
1360 find_if(m_window_search.begin(), 1360 find_if(m_window_search.begin(),
1361 m_window_search.end(), 1361 m_window_search.end(),
1362 Compose(bind2nd(equal_to<WinClient *>(), client), 1362 Compose(bind2nd(equal_to<const WinClient *>(), client),
1363 Select2nd<WinClientMap::value_type>())); 1363 Select2nd<WinClientMap::value_type>()));
1364 return it != m_window_search.end(); 1364 return it != m_window_search.end();
1365} 1365}