[cfe-dev] [PATCH] Friend class cannot access protected field of parent

Sebastian Redl sebastian.redl at getdesigned.at
Tue Jun 8 01:26:48 PDT 2010


On Tue, 8 Jun 2010 00:56:51 -0700, John McCall <rjmccall at apple.com> wrote:
> I'm willing to consider evidence in the form of a DR that I'm wrong, but
> I don't really want to implement the rule, and I'm not going to
implement
> it as long as it's undecidable.

A sensible decision, IMO. Anyway, the only DR about this bullet point is
#747, and it's been open since Nov 2008, with apparently no work done on it
at all. Maybe there's still time to contact some representative of a
national body to get a comment in?

I agree that this rule doesn't make sense. If R is a friend of P, then it
should name the member through P if it wants access, not through N.

Sebastian

http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#747




More information about the cfe-dev mailing list