https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101527
--- Comment #3 from 康桓瑋 ---
(In reply to Jonathan Wakely from comment #2)
> I find it surprising, but the CWG consensus seems to be that a friend
> defined inline in the class body is "a member declaration of the befriended
> class".
Hey Jonath
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101527
--- Comment #2 from Jonathan Wakely ---
I find it surprising, but the CWG consensus seems to be that a friend defined
inline in the class body is "a member declaration of the befriended class".
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101527
--- Comment #1 from 康桓瑋 ---
(In reply to 康桓瑋 from comment #0)
> But according to the description of [class.friend#10]: "Friendship is
> neither inherited nor transitive." this will cause the following valid codes
> to be rejected:
This is the i