summaryrefslogtreecommitdiff
path: root/include/o3tl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-26 10:37:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-26 15:47:12 +0200
commit02a3abcceeb9be7f101b0bcaf55accc7fb6bfcf7 (patch)
treee503c6b9de07f88bc56a824bfdff9a91b78ba4fa /include/o3tl
parentade8521657d5d52cd5d67a60859f34c1b32c8e34 (diff)
array_view std::hash override should be const
Change-Id: I8ffdf86e98e261b337cfa81b1be0cb64539c9a9c Reviewed-on: https://gerrit.libreoffice.org/43871 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/o3tl')
-rw-r--r--include/o3tl/array_view.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/o3tl/array_view.hxx b/include/o3tl/array_view.hxx
index bb4818a4c8a0..2913010fab89 100644
--- a/include/o3tl/array_view.hxx
+++ b/include/o3tl/array_view.hxx
@@ -180,7 +180,7 @@ namespace std {
template<typename T>
struct hash<o3tl::array_view<T>> {
- std::size_t operator()(o3tl::array_view<T> s)
+ std::size_t operator()(o3tl::array_view<T> s) const
{ return hash<T[]>()(s.data(), s.size()); }
};