public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-10247] libstdc++: Remove [[nodiscard]] from <valarray>
@ 2021-11-01 20:24 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2021-11-01 20:24 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:fa9c9b31b75ff7d7878da47bdefcd930d34c5421
commit r10-10247-gfa9c9b31b75ff7d7878da47bdefcd930d34c5421
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Mon Nov 1 20:20:57 2021 +0000
libstdc++: Remove [[nodiscard]] from <valarray>
A backport from trunk included these attributes, but they aren't present
on the other std::begin and std::end overloads, so remove them from
these overloads.
libstdc++-v3/ChangeLog:
* include/std/valarray (begin, end): Remove nodiscard attribute.
Diff:
---
libstdc++-v3/include/std/valarray | 4 ----
1 file changed, 4 deletions(-)
diff --git a/libstdc++-v3/include/std/valarray b/libstdc++-v3/include/std/valarray
index 96e2bcb290f..e1b5d5f4f02 100644
--- a/libstdc++-v3/include/std/valarray
+++ b/libstdc++-v3/include/std/valarray
@@ -1210,7 +1210,6 @@ _DEFINE_BINARY_OPERATOR(>=, __greater_equal)
* @param __va valarray.
*/
template<class _Tp>
- [[__nodiscard__]]
inline _Tp*
begin(valarray<_Tp>& __va) noexcept
{ return __va.size() ? std::__addressof(__va[0]) : nullptr; }
@@ -1221,7 +1220,6 @@ _DEFINE_BINARY_OPERATOR(>=, __greater_equal)
* @param __va valarray.
*/
template<class _Tp>
- [[__nodiscard__]]
inline const _Tp*
begin(const valarray<_Tp>& __va) noexcept
{ return __va.size() ? std::__addressof(__va[0]) : nullptr; }
@@ -1232,7 +1230,6 @@ _DEFINE_BINARY_OPERATOR(>=, __greater_equal)
* @param __va valarray.
*/
template<class _Tp>
- [[__nodiscard__]]
inline _Tp*
end(valarray<_Tp>& __va) noexcept
{
@@ -1248,7 +1245,6 @@ _DEFINE_BINARY_OPERATOR(>=, __greater_equal)
* @param __va valarray.
*/
template<class _Tp>
- [[__nodiscard__]]
inline const _Tp*
end(const valarray<_Tp>& __va) noexcept
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-01 20:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-01 20:24 [gcc r10-10247] libstdc++: Remove [[nodiscard]] from <valarray> Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).