Content deleted Content added
corrected which function is instantiated |
m →Deducing this: Mark up inconspicuous feature name |
||
Line 247:
==Deducing this==
The use of CRTP can be simplified using the [[C++23]] feature
}}</ref><ref>{{Cite web|title=Explicit object parameter|url=https://en.cppreference.com/w/cpp/language/member_functions#Explicit_object_parameter|access-date=27 December 2023}}</ref> For the function <code>signature_dish</code> to call a derived member function <code>cook_signature_dish</code>, <code>ChefBase</code> needs to be a templated type and <code>CafeChef</code> needs to inherit from <code>ChefBase</code>, passing its type as the template parameter.
|