Skip to content

Make most namespace-scope operators hidden friends#825

Open
fabianbs96 wants to merge 2 commits intosecure-software-engineering:developmentfrom
fabianbs96:f-HiddenFriendOperators
Open

Make most namespace-scope operators hidden friends#825
fabianbs96 wants to merge 2 commits intosecure-software-engineering:developmentfrom
fabianbs96:f-HiddenFriendOperators

Conversation

@fabianbs96
Copy link
Copy Markdown
Member

No description provided.

bool operator<(const DOTNode &Lhs, const DOTNode &Rhs);
bool operator==(const DOTNode &Lhs, const DOTNode &Rhs);
llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const DOTNode &Node);
friend bool operator<(const DOTNode &Lhs, const DOTNode &Rhs);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: without a direct implementation this is not a hidden friend 😉
Please double check where it could make sense to move the impl. otherwise, keeping the free function is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants