Talk:cpp/language/crtp

The C++23 code listing given in the example here isn't CRTP, the two code listings given aren't equivalent at all. The equivalent non-C++23 code would be given by:

The code here calls derived functions from the base class, but it's not CRTP, although it is somewhat in the same spirit as CRTP, hence why I haven't removed the code from the page. I do want to stress that the explicit object parameter doesn't allow us to do anything we couldn't do before though (such as call functions defined in a derived class from a base class without making the base class a template), it merely provides a different syntax to call the base class function. --Ybab321 (talk) 12:56, 26 January 2023 (PST)