mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
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
This commit is contained in:
committed by
Jonathan Wakely
parent
2c15eace95
commit
7571121f10
@@ -1,5 +1,9 @@
|
||||
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.
|
||||
|
||||
* include/bits/std_mutex.h (mutex::native_handle)
|
||||
(lock_guard(mutex_type&, adopt_lock_t)
|
||||
(unique_lock(mutex_type&, adopt_lock_t): Add noexcept.
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -414,7 +414,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()
|
||||
|
||||
Reference in New Issue
Block a user