Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. Barton-Nackman
trick is a term coined by the C++ standardization committee to refer to
an idiom introduced by John Barton and Lee Nackman as Restricted
Template Expansion. The Barton-Nackman trick, then, achieves the goal of
providing a generic user-defined equality operator without having to
deal with such ambiguities. The adjective restricted in the idiom name
refers to the fact that the provided in-class function definition is
restricted to specializations of the given class template. The term is
sometimes mistakenly used to refer to the Curiously Recurring Template
Pattern. As explained above, the Barton-Nackman trick is a distinct
idiom.