template forward reference

Don Clugston dac at nospam.com.au
Wed Aug 1 03:06:26 PDT 2007


C. Dunn wrote:
> This works:
> <code>
> class Foo(T){
>   int bar(){
>     return A.hi();
>   }
> };
> 
> class A{
>   static int hi(){
>     return 0;
>   }
> 
>   F!(char) x;
> };
> </code>

I presume that should be 'Foo!(char) x;' (even though your error message refers 
to 'F').




More information about the Digitalmars-d mailing list