Код: Выделить всё
#include
template struct A { int value = T; };
// Replacing 'unsigned char' with 'int' makes it work with GCC 14:
template using B = A;
// Or, replacing 'auto' with 'int' makes it work with GCC 14:
template
void foo(B& mat) noexcept
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78829413/c-auto-template-parameter-deduction-not-working-in-gcc-14-unlike-its-older-ver[/url]
Мобильная версия