summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-02-17 18:32:52 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-17 19:18:57 (GMT)
commit10e53e230811b94701d86e8c78e38df5abf69ee8 (patch)
treeaa3b8dace3e82b60e78774e26a9d14c7eb52d9b0
parent74906322585034968142e1d1663f604e2c97332c (diff)
downloadCMake-10e53e230811b94701d86e8c78e38df5abf69ee8.zip
CMake-10e53e230811b94701d86e8c78e38df5abf69ee8.tar.gz
CMake-10e53e230811b94701d86e8c78e38df5abf69ee8.tar.bz2
cmAlgorithms: Add missing const to functors.
-rw-r--r--Source/cmAlgorithms.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmAlgorithms.h b/Source/cmAlgorithms.h
index dc4f275..8491838 100644
--- a/Source/cmAlgorithms.h
+++ b/Source/cmAlgorithms.h
@@ -99,7 +99,7 @@ template<typename Container,
bool valueTypeIsPair = cmIsPair<typename Container::value_type>::value>
struct DefaultDeleter
{
- void operator()(typename Container::value_type value) {
+ void operator()(typename Container::value_type value) const {
delete value;
}
};
@@ -107,7 +107,7 @@ struct DefaultDeleter
template<typename Container>
struct DefaultDeleter<Container, /* valueTypeIsPair = */ true>
{
- void operator()(typename Container::value_type value) {
+ void operator()(typename Container::value_type value) const {
delete value.second;
}
};
@@ -163,7 +163,7 @@ struct BinarySearcher
{
}
- bool operator()(argument_type const& item)
+ bool operator()(argument_type const& item) const
{
return std::binary_search(m_range.begin(), m_range.end(), item);
}