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 & lt; Typename T & gt; Class GetValue {static const int v = 0; }; Template & lt; Typename T & gt; Class GetValue & lt; Foo & LT; T & gt; & Gt; {Static const int v = 10; }; Template & lt; Typename T & gt; Int Footy & Lt; T & gt; :: ms_id = GetValue & lt; T & gt; :: Vi;  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -