Boost logo

Boost :

From: Oliver.Kowalke_at_[hidden]
Date: 2007-07-12 00:54:22


> > Just adding some non-standard indentation to that makes it
> almost as
> > clear as I need. You don't need the {}, but it keeps your editor's
> > auto-indent happy:
> >
> > articleinfo ai;
> > {
> > if (title) ai.push_back(comment("This title was moved"));
> > author a;
> > {
> > a.push_back(firstname("Joe"));
> > a.push_back(surname("Random"));
> > ai.push_back(a);
> > }
> > root.push_back(ai);
> > }
>
> 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?

Oliver


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk