3 ms·
That's awesome. I ran into this situation in C#, and looks like it is useful in some cases. https://zpbappi.com/curiously-recurring-template-pattern-in-csharp/
by snak 7y ago
That's awesome. I ran into this situation in C#, and looks like it is useful in some cases.
https://zpbappi.com/curiously-recurring-template-pattern-in-csharp/ https://zpbappi.com/curiously-recurring-template-pattern-in-...
- kmote00 7y agotl;dr: "Generally, whenever you need the derived class information in the base class, you are probably looking for CRTP."