From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 0FEE339B909F; Thu, 12 Aug 2021 18:46:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0FEE339B909F 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-2884] libstdc++: Add [[nodiscard]] to experimental::randint X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 27a1fb385b7fe706f05608e53f3e91d7d3442b8b X-Git-Newrev: 20ce14c7991fbb498e32a0f5e3b01ae88c9f5e9a Message-Id: <20210812184635.0FEE339B909F@sourceware.org> Date: Thu, 12 Aug 2021 18:46:35 +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: Thu, 12 Aug 2021 18:46:35 -0000 https://gcc.gnu.org/g:20ce14c7991fbb498e32a0f5e3b01ae88c9f5e9a commit r12-2884-g20ce14c7991fbb498e32a0f5e3b01ae88c9f5e9a Author: Jonathan Wakely Date: Thu Aug 12 18:05:24 2021 +0100 libstdc++: Add [[nodiscard]] to experimental::randint Signed-off-by: Jonathan Wakely libstdc++-v3/ChangeLog: * include/experimental/random (experimental::randint): Add nodiscard attribute. Diff: --- libstdc++-v3/include/experimental/random | 1 + 1 file changed, 1 insertion(+) diff --git a/libstdc++-v3/include/experimental/random b/libstdc++-v3/include/experimental/random index 2c2b359ff41..d7431e33e98 100644 --- a/libstdc++-v3/include/experimental/random +++ b/libstdc++-v3/include/experimental/random @@ -50,6 +50,7 @@ inline namespace fundamentals_v2 { // 13.2.2.1, Function template randint template + [[__nodiscard__]] inline _IntType randint(_IntType __a, _IntType __b) {