Forward referencing templates..

James Dean Palmer james at tiger3k.com
Thu Oct 26 15:59:46 PDT 2006


Bradley Smith wrote:
> James Dean Palmer wrote:
> 
>> Sure, but remove the template aspect and consider the classes - we 
>> have no trouble representing classes with infinitely recursive 
>> relationships.  class Bob can point to an object of type Alice and 
>> Alice can point to an object of type Bob.  I'd like to be able to do 
>> the same thing with templatized classes.
> 
> That would be like the following, which does compile.
> 
 > ... snipped

Right, except I want Alice and Bob referenced when passed in as template 
parameters.  :-)



More information about the Digitalmars-d mailing list