From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C4DF338582A3; Wed, 21 Feb 2024 12:00:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C4DF338582A3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708516834; bh=GI6ACC1usMm45kPQ0R61YqrsmIhYS7tKP5nBtryC5fc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dKdpd7T3SW7BVMIbiebvOB0G8mAyV9oxtkg4264KBTemJtsoFZOqx8WiDSmx7Shtg MB5cr0fnX+0r7+w+OR8HbRhxs3LGh+57fXWSIdRVGrs8L+nkOqZuLSF5WmpNG7h0VO F7u8sV0Mq3VwI+/f8sO7LcaRnJYR8tpBdKpupZ6c= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/114018] std::nexttoward is not implemented for C++23-FP-Types Date: Wed, 21 Feb 2024 12:00:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114018 --- Comment #16 from Jonathan Wakely --- We could also just add: #if __cplusplus > 202002L template void nexttoward(_Tp, long double) =3D delete; #endif The existing overloads would be preferred for float, double, long double and integral types, so this would only be chosen for extended floating-point ty= pes.=