c++ - Templated parameter for a template specialisation? -
Hello, I've got a static member of a templated class that I want to define for a sub group of classes Which are templated: template & lt; Typename T & gt; Class FooT {Private: Stable Int MS_ID; }; Template & lt; Typename T & gt; Square fu {}; The template's & lt; & Gt; Template & lt; Typename T & gt; Int Footy & Lt; Template foo & lt; T & gt; & Gt; :: ms_id = 10; Unfortunately this throws the following error under GCC 4.1.1 D: \ X \ Foo.h (98): Error: Invalid template logic 1. On this line: template & lt; & Gt; Template & lt; Typename T & gt; Int Footy & Lt; Template foo & lt; T & gt; & Gt; :: ms_id = 10; What is wrong with the general concept in the first place? You can get partial expertise of this "initial template": template & lt; Typename T & gt; Class FooT {Private: Stable Int MS_ID; }; Template & lt; Typename T & gt; Square fu {}; Template ...