From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 486963857C65; Fri, 1 Oct 2021 19:38:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 486963857C65 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-4064] libstdc++: Add noexcept to common_iterator proxy operators X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: d335d73889d897d073b987b4323db05317fccad3 X-Git-Newrev: ce709ad3dc0ed5d7ea48a116311d4441225446f0 Message-Id: <20211001193834.486963857C65@sourceware.org> Date: Fri, 1 Oct 2021 19:38:34 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2021 19:38:34 -0000 https://gcc.gnu.org/g:ce709ad3dc0ed5d7ea48a116311d4441225446f0 commit r12-4064-gce709ad3dc0ed5d7ea48a116311d4441225446f0 Author: Jonathan Wakely Date: Fri Apr 30 14:43:54 2021 +0100 libstdc++: Add noexcept to common_iterator proxy operators Signed-off-by: Jonathan Wakely libstdc++-v3/ChangeLog: * include/bits/stl_iterator.h (common_iterator::__arrow_proxy) (common_iterator::__postfix_proxy): Add noexcept. Diff: --- libstdc++-v3/include/bits/stl_iterator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/include/bits/stl_iterator.h b/libstdc++-v3/include/bits/stl_iterator.h index 4973f792b56..8517652a173 100644 --- a/libstdc++-v3/include/bits/stl_iterator.h +++ b/libstdc++-v3/include/bits/stl_iterator.h @@ -1813,7 +1813,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION public: const iter_value_t<_It>* - operator->() const + operator->() const noexcept { return std::__addressof(_M_keep); } }; @@ -1828,7 +1828,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION public: const iter_value_t<_It>& - operator*() const + operator*() const noexcept { return _M_keep; } };