]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove redundant const qualifiers from string_view
authorJonathan Wakely <jwakely@redhat.com>
Mon, 17 Oct 2016 17:03:40 +0000 (18:03 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 17 Oct 2016 17:03:40 +0000 (18:03 +0100)
Backport from mainline:
2016-10-11  Jonathan Wakely  <jwakely@redhat.com>

* include/experimental/string_view (basic_string_view::_S_compare):
Remove redundant const from return type.
* include/std/string_view (basic_string_view:_S_compare): Likewise.

From-SVN: r241268

libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/string_view

index efe8181cb340e11d0989fdba51348b173fa5015e..888b3708197ca6fbed482462a3f195f4383db031 100644 (file)
@@ -1,3 +1,11 @@
+2016-10-17  Jonathan Wakely  <jwakely@redhat.com>
+
+       Backport from mainline:
+       2016-10-11  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/experimental/string_view (basic_string_view::_S_compare):
+       Remove redundant const from return type.
+
 2016-10-17  Jonathan Wakely  <jwakely@redhat.com>
 
        Backport from mainline:
index 5807345d44c5f26b8fe80efe8ab6a033e5a2edf1..9e7ca0452fdd263ef59b76f268f485a264003b5c 100644 (file)
@@ -420,7 +420,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
     private:
 
-      static constexpr const int
+      static constexpr int
       _S_compare(size_type __n1, size_type __n2) noexcept
       {
        return difference_type{__n1 - __n2} > std::numeric_limits<int>::max()