Replies: 1 comment 1 reply
-
This question is conflating two issues. The first issue is defining The second question is why is the |
Beta Was this translation helpful? Give feedback.
-
This question is conflating two issues. The first issue is defining The second question is why is the |
Beta Was this translation helpful? Give feedback.
-
The new
AbslStringify()
API suggests that one should declare afriend
function namedAbslStringify
to make it stringifyable. But is thefriend
qualifier necessary? It would be nice to stringify code that we don't own (e.g., from another library that doesn't want to take on Abseil as a dependency).The EnumWithStringify test suggests that the friend qualifier it not necessary. Is there any requirement for
friend
if the function were declared out of line and didn't need access to protected or private members?Beta Was this translation helpful? Give feedback.
All reactions