Hacker News new | ask | show | jobs
by kmote00 2417 days ago
tl;dr: "Generally, whenever you need the derived class information in the base class, you are probably looking for CRTP."