From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 08BED3846404; Thu, 24 Nov 2022 08:19:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 08BED3846404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669277941; bh=yyc+LDCyCTu4QBh17MuN+E6hYZRqtQX9ppidmoN3YFo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=av2NyE+znbiTdbTefwffctO+wqOkcKgQ2jXFeZuwGe2w7NGyA/Cln/4dy5tLuIAg7 QreiJk9zt39CZ76H0FniFfYRZvpGqqceCb7E+7lvyHYUcbYKUmHSfr3kyoipqlD6zY HrUjNbnSphHlykSKDhVy45OSuzJPVNIaZTvG9GOQ= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/107850] [12/13 Regression] std::erase_if (map) forces predicate to takes a const value_type Date: Thu, 24 Nov 2022 08:18:58 +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: 12.1.0 X-Bugzilla-Keywords: rejects-valid 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: 12.3 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=3D107850 --- Comment #2 from Jonathan Wakely --- I have very little sympathy for this use case, predicates that can't be cal= led with const arguments are always wrong. I'm inclined to say the standard sho= uld be fixed to match our new behaviour.=