Passkey Idiom: More Useful Empty Classes—Arne Mertz

Save to:
Instapaper Pocket Readability

Friends are nice, but not in C++.

Passkey Idiom: More Useful Empty Classes

by Arne Mertz

From the article:

After last week’s post about tag dispatch let’s have a look at another example for useful empty classes: The passkey idiom can help us regain control that we would give up by simply making classes friends.

Add a Comment

You must sign in or register to add a comment.

Comments (0)

There are currently no comments on this entry.