Код: Выделить всё
template
static inline void print(T value)
{
if (std::is_integral_v)
{
if (value < 0) putchar('-'), value = -value;
if (value > 9) print(value / 10);
putchar(value % 10 + '0');
}
else std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79261904/c-is-integral-vt-doesnt-compile-with-templates[/url]