Код: Выделить всё
#include
template
struct Test {
void call() {}
template = 0>
void call(SpecArg&& arg) {}
};
Код: Выделить всё
int main (int argc, char **argv)
{
Test t;
t.call();
return 0;
}
< /code>
...i Получите эту ошибку: < /p>
error: forming reference to void
void call(SpecArg&& arg) {}
Подробнее здесь: https://stackoverflow.com/questions/796 ... void-error
Мобильная версия