<i>author</i> The other alternative, which is currently used in production to solve the same problem is CRTP ( <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Curiously_recurring_template_pattern" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Curiously_recurring_template_p...</a> ) ... And the question is, which one is a lesser evil.