Y
Yan
I have the following code that the compiler complains about that "No
parameters provided for template". The compiler is the one that comes
with Sun Solaris, not sure what exactly. I have no control over what
compiler is to be used, so I just want to know whether the code is
wrong (in which case could you please show me the correct version) or
the compiler isn't up-to-date.
Here is the code:
---------------------------------
template <typename T = int> class C {};
int main() {
C c; // that is the line that the compiler is complaining about
return 0;
}
parameters provided for template". The compiler is the one that comes
with Sun Solaris, not sure what exactly. I have no control over what
compiler is to be used, so I just want to know whether the code is
wrong (in which case could you please show me the correct version) or
the compiler isn't up-to-date.
Here is the code:
---------------------------------
template <typename T = int> class C {};
int main() {
C c; // that is the line that the compiler is complaining about
return 0;
}