[Libreoffice-commits] core.git: include/o3tl

Noel Grandin noel.grandin at collabora.co.uk
Thu Oct 26 13:48:04 UTC 2017


 include/o3tl/array_view.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 02a3abcceeb9be7f101b0bcaf55accc7fb6bfcf7
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Thu Oct 26 10:37:42 2017 +0200

    array_view std::hash override should be const
    
    Change-Id: I8ffdf86e98e261b337cfa81b1be0cb64539c9a9c
    Reviewed-on: https://gerrit.libreoffice.org/43871
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

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()); }
 };
 


More information about the Libreoffice-commits mailing list