From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 044E7384384B; Mon, 13 May 2024 09:06:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 044E7384384B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715591209; bh=DIzazVioh6KGuWMfpaI+KT4P38ktXJKmKkwDTSeA7fA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=D34DdDn79UDLrh7MYtS1Qh0af6GtvwIJuq89+5Osfax74GKAAGZEdReOwupRZ3IJG wIioIm/HUqh/Auwu1kkBvk6z4D9KXOK14QjtjHAu7gJzu2s0n+H4n2OBdBvxK5Evd3 xHjLYszpFAYnPgReApjQScKSr8BNTREe7v0w4Uzs= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/115059] Constraints/Mandates on the comparison operators of std::optional and std::variant are overly strict Date: Mon, 13 May 2024 09:06:48 +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: 15.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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=3D115059 --- Comment #1 from Jonathan Wakely --- I don't want to change anything in libstdc++ here. Either std::is_convertib= le should be sufficient to check "convertible to" constraints, or "convertible= to" should exclude these kind of games.=