public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r10-10247] libstdc++: Remove [[nodiscard]] from <valarray> Date: Mon, 1 Nov 2021 20:24:36 +0000 (GMT) [thread overview] Message-ID: <20211101202436.E95AC3858000@sourceware.org> (raw) 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 {
reply other threads:[~2021-11-01 20:24 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211101202436.E95AC3858000@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).