aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-11-05 21:42:20 +0000
committerJonathan Wakely <jwakely@redhat.com>2021-11-05 21:44:01 +0000
commit2b2d97fc545635a0f6aa9c9ee3b017394bc494bf (patch)
tree82120d2d34f1c33149e195cd67bc8f37f66d3c06 /libstdc++-v3
parent70d6f6e41f77269f7d293c6fbccf978680e68d2a (diff)
downloadgcc-2b2d97fc545635a0f6aa9c9ee3b017394bc494bf.zip
gcc-2b2d97fc545635a0f6aa9c9ee3b017394bc494bf.tar.gz
gcc-2b2d97fc545635a0f6aa9c9ee3b017394bc494bf.tar.bz2
libstdc++: Fix inconsistent noexcept-specific for valarray begin/end
These declarations should be noexcept after I added it to the definitions in <valarray>. libstdc++-v3/ChangeLog: * include/bits/range_access.h (begin(valarray), end(valarray)): Add noexcept.
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/include/bits/range_access.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/include/bits/range_access.h b/libstdc++-v3/include/bits/range_access.h
index 3dec687..5e4c472 100644
--- a/libstdc++-v3/include/bits/range_access.h
+++ b/libstdc++-v3/include/bits/range_access.h
@@ -110,10 +110,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
template<typename _Tp> class valarray;
// These overloads must be declared for cbegin and cend to use them.
- template<typename _Tp> _Tp* begin(valarray<_Tp>&);
- template<typename _Tp> const _Tp* begin(const valarray<_Tp>&);
- template<typename _Tp> _Tp* end(valarray<_Tp>&);
- template<typename _Tp> const _Tp* end(const valarray<_Tp>&);
+ template<typename _Tp> _Tp* begin(valarray<_Tp>&) noexcept;
+ template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
+ template<typename _Tp> _Tp* end(valarray<_Tp>&) noexcept;
+ template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
/**
* @brief Return an iterator pointing to the first element of