summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/experimental/string_view
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2016-10-11 11:33:24 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2016-10-11 11:33:24 +0100
commit7571121f10551b47b0eff7f8dc7fb32ed348f442 (patch)
tree23fd3403a21cf7bc64f5f6f9f73d7d35c8633abc /libstdc++-v3/include/experimental/string_view
parent2c15eace95fe78182e9fcaa736c06ed73878d7e9 (diff)
downloadgcc-7571121f10551b47b0eff7f8dc7fb32ed348f442.tar.gz
Remove redundant const qualifliers from string_view
* 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: r240981
Diffstat (limited to 'libstdc++-v3/include/experimental/string_view')
-rw-r--r--libstdc++-v3/include/experimental/string_view2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/experimental/string_view b/libstdc++-v3/include/experimental/string_view
index 8cb8c1ffa1c..c1dfef0e3bf 100644
--- a/libstdc++-v3/include/experimental/string_view
+++ b/libstdc++-v3/include/experimental/string_view
@@ -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()