Re:The cost of dynamic vs. static dispatch in C++
by banachtarski on Thursday December 05, 2013 @04:40PM
(#6857469)
Also, CRTP prevents you from storing all derived objects in a single container, since the underlying types are now heterogeneous. There are also more restrictions present in terms of slicing, casting, among other things that render CRTP a poor choice in many situations.
In the end, it's just another tool which is the right one in particular circumstances, and the wrong one in all others.
In the end, it's just another tool which is the right one in particular circumstances, and the wrong one in all others.