summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2016-12-14 13:25:55 +0000
committerMaxime Coste <mawww@kakoune.org>2016-12-14 13:25:55 +0000
commitdfb030da6efbca77f014f7deb2f2ee98b47bac5c (patch)
treeef80f5631e265ef43f0eb3597d71ccdc5cbd3fb3 /src
parent8e351e8285f642c7822e44155bb757ae67bc6911 (diff)
Make container wrapper callback functions mutable
It seems at least std::mem_fn callable wrapper type call operator is not guaranteed to be const, so we need to be able to call on a non const object. This should do for now. Fixes #978
Diffstat (limited to 'src')
-rw-r--r--src/containers.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/containers.hh b/src/containers.hh
index c972d93e..621dd480 100644
--- a/src/containers.hh
+++ b/src/containers.hh
@@ -101,7 +101,7 @@ struct FilterView
Iterator end() const { return {*this, std::end(m_container), std::end(m_container)}; }
Container m_container;
- Filter m_filter;
+ mutable Filter m_filter;
};
template<typename Filter>
@@ -158,7 +158,7 @@ struct TransformView
Iterator end() const { return {*this, std::end(m_container)}; }
Container m_container;
- Transform m_transform;
+ mutable Transform m_transform;
};
template<typename Transform>