Barton-Nackman trick

proper noun

A form of restricted template expansion in C++, characterized by an in-class friend function definition appearing in the base class template component of the curiously recurring template pattern.

Meanings

proper nounthe Barton-Nackman trick
  1. computingA form of restricted template expansion in C++, characterized by an in-class friend function definition appearing in the base class template component of the curiously recurring template pattern.

Origin

The technique was introduced by John Barton and Lee Nackman.

Full word history & related roots →
Cite this entry
APA

Barton-Nackman trick. (n.d.). In WatkinsX Dictionary. Retrieved November 4, 2026, from https://dictionary.watkinsx.com/word/Barton-Nackman%20trick

MLA

“Barton-Nackman trick.” WatkinsX Dictionary, https://dictionary.watkinsx.com/word/Barton-Nackman%20trick. Accessed November 4, 2026.

Chicago

WatkinsX Dictionary, s.v. “Barton-Nackman trick,” accessed November 4, 2026, https://dictionary.watkinsx.com/word/Barton-Nackman%20trick.

Source: Barton-Nackman trick on Wiktionary, CC BY-SA 4.0.