From: Jonathan Wakely Date: Fri, 5 Nov 2021 21:42:20 +0000 (+0000) Subject: libstdc++: Fix inconsistent noexcept-specific for valarray begin/end X-Git-Tag: basepoints/gcc-13~3350 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b2d97fc545635a0f6aa9c9ee3b017394bc494bf;p=thirdparty%2Fgcc.git libstdc++: Fix inconsistent noexcept-specific for valarray begin/end These declarations should be noexcept after I added it to the definitions in . libstdc++-v3/ChangeLog: * include/bits/range_access.h (begin(valarray), end(valarray)): Add noexcept. --- diff --git a/libstdc++-v3/include/bits/range_access.h b/libstdc++-v3/include/bits/range_access.h index 3dec687dd94e..5e4c4727ebfe 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 class valarray; // These overloads must be declared for cbegin and cend to use them. - template _Tp* begin(valarray<_Tp>&); - template const _Tp* begin(const valarray<_Tp>&); - template _Tp* end(valarray<_Tp>&); - template const _Tp* end(const valarray<_Tp>&); + template _Tp* begin(valarray<_Tp>&) noexcept; + template const _Tp* begin(const valarray<_Tp>&) noexcept; + template _Tp* end(valarray<_Tp>&) noexcept; + template const _Tp* end(const valarray<_Tp>&) noexcept; /** * @brief Return an iterator pointing to the first element of