From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 1E7EF385801B; Wed, 24 Nov 2021 11:51:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E7EF385801B 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 r11-9296] libstdc++: Add noexcept to std::nullopt_t constructor X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/releases/gcc-11 X-Git-Oldrev: ecc43c92151141e3e862a344f753516dc6d5d967 X-Git-Newrev: d7046cc983accfbdc8cb33ce3ef56b30274b67b4 Message-Id: <20211124115154.1E7EF385801B@sourceware.org> Date: Wed, 24 Nov 2021 11:51:54 +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: Wed, 24 Nov 2021 11:51:54 -0000 https://gcc.gnu.org/g:d7046cc983accfbdc8cb33ce3ef56b30274b67b4 commit r11-9296-gd7046cc983accfbdc8cb33ce3ef56b30274b67b4 Author: Jonathan Wakely Date: Thu Sep 16 14:14:38 2021 +0100 libstdc++: Add noexcept to std::nullopt_t constructor Signed-off-by: Jonathan Wakely libstdc++-v3/ChangeLog: * include/std/optional (nullptr_t): Make constructor noexcept. (cherry picked from commit cbe705a2f749c98a5f803afeb207e175b4c9a3c3) Diff: --- libstdc++-v3/include/std/optional | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/std/optional b/libstdc++-v3/include/std/optional index 0a67ce24bbd..023fe81cae2 100644 --- a/libstdc++-v3/include/std/optional +++ b/libstdc++-v3/include/std/optional @@ -70,7 +70,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION enum class _Construct { _Token }; // Must be constexpr for nullopt_t to be literal. - explicit constexpr nullopt_t(_Construct) { } + explicit constexpr nullopt_t(_Construct) noexcept { } }; /// Tag to disengage optional objects.