Y
Hacker News
new
|
ask
|
show
|
jobs
by
dearrifling
2558 days ago
Although the Badge pattern makes it flexible to add functions with different badges, this one doesn't have the awkward interface:
https://godbolt.org/z/25k1DG
It just makes use of the non-transitiveness of friend.