Practical Uses for the "Curiously Recurring Template Pattern"

Kevin picture Kevin · Sep 29, 2008 · Viewed 13.1k times · Source

What are some practical uses for the "Curiously Recurring Template Pattern"? The "counted class" example commonly shown just isn't a convincing example to me.

Answer

moonshadow picture moonshadow · Sep 29, 2008

Simulated dynamic binding. Avoiding the cost of virtual function calls while retaining some of the hierarchical benefits is an enormous win for the subsystems where it can be done in the project I am currently working on.