void* func(size_t size)
{
IRQ_GUARD;
//Код собственно функции
}
Function1<int>(i, b);
For non-template functions, default arguments can be added to a function that was already declared if the function is redeclared in the same scope.
main.cpp:24:6: error: redeclaration of 'template void Function1(T, int)' may not have default arguments [-fpermissive]
void Function1(T a, int b = 0) {
main.cpp:24:25: error: default arguments cannot be added to a function template that has already been declared
void Function1(T a, int b = 0) {