Test for self referential templated Class

Manfred_Nowak svv1999 at hotmail.com
Mon Jun 30 00:56:54 PDT 2008


Koroskin Denis wrote:

> Use tango.core.Variant.isAtomicType!(T) template to test against
> builtin  types.

.. this does not help for user defined types.

One seem's to need something like
  
class C(T){
  //...
     !is( T == C!( ... ))

But this casts one into infinite recursion.

-manfred






More information about the Digitalmars-d mailing list