From 7571121f10551b47b0eff7f8dc7fb32ed348f442 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 11 Oct 2016 11:33:24 +0100 Subject: 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 --- libstdc++-v3/include/experimental/string_view | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libstdc++-v3/include/experimental/string_view') 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::max() -- cgit v1.2.1