This code will not be compiled in GCC, because T is covered, though it is not a warning in VS 2005, So what is assumptions making VS compiler?
template & lt; Typename T & gt; Class fu {template
found the correct answer after 3 months of search :) In this 14.6 The standard is .1 / 4
A template-parameter will not be changed again within its scope (including nosted scoops). A template-parameter will not have the same name as the template name.
Example:
Template & lt; Square t, int i & gt; Square y {int t; // Error: Template-parameter redDeclard zero F () {four t; // error: template-parameter redeclared}}; Template & lt; Class X & gt; Class X; // Error: Template-parameter redeclared
If Microsoft compiler allows it to compile without errors or warnings, then it is not compatible. I do not know that it can allow it without any movement. You can try high alert levels.
Comments
Post a Comment