News for hackers. Stuff that matters.
Re:CppCon 2018: Simplicity: Not Just For Beginners [video] by hfdgiutdryg on Friday September 28, 2018 @01:20PM (#18095114)
With regular inheritance, you affect behavior from the bottom up.

With the "Curiously Recurring Template Pattern", you affect behavior from the bottom up and from the top down.

To be honest, I don't know if it has value for most tasks people care about (outside of libraries, I mean). But it was fantastic for optimizing OOP-abstracted desktop applications. If you have some subset of functions that need to be called a lot, then avoiding virtual functions really helps.

There are no comments on this comment yet.