Recursive data structure using template won't compile

Rob T rob at ucora.com
Thu Nov 8 12:11:55 PST 2012


Before I forget, it is important to note that the structure 
consists of two parts, the value with a list of associated 
sub-values, along with the list.

struct R
{
    int value;
    d_list!R Rlist;
}

struct d_list( T )
{
    struct node
    {
       T payload;
       node* pred;
       node* succ;
    }
    node* head;
    node* tail;
}

--rt


More information about the Digitalmars-d-learn mailing list