Do you remember CRTP? No? Then definitely read about it here:
The Curious Case of the Recurring Template Pattern
by K-ballo
Inheritance is a handy tool to simplify design and avoi code duplication. However, good old fashioned inheritance is not always the right tool for the job. What if a base class could know, at compile time, who derives from it? Enter the curiously recurring template pattern (CRTP)...
Add a Comment
Comments are closed.