Код: Выделить всё
#include
enum MotorEnum { Thermic, Electric };
// There will never be default implementation
template
void BuildCar();
template
void BuildCar()
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79352325/tag-dispatching-with-template-specialization-overloading[/url]
Мобильная версия