From: Oliver.Kowalke_at_[hidden]
Date: 2007-07-12 03:21:40


> > > Instantiating every node you have to add is just too much
> > > unnecessary burden. I can't see how the user gains with this,
> > > instead of the declarative approach.
> >
> > What about typesafety?
> > Isn't it better to insert firstname objects into
> articleinfo objects
> > than inserting tag objects into tag object?
>
> How are you going to enforce only firstnames to articleinfo?
> Or did I miss something?

You could do it over templates like

typedef tag<
        mpl::vector< title, author > // tags
        mpl::vector< isbn > // atributes
> article_info;

Kind regards,
Oliver