|
Boost : |
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2003-05-29 05:41:47
"Vladimir Prus" <ghost_at_[hidden]> wrote in message
news:bb4n6o$pfk$1_at_main.gmane.org...
> Gennadiy Rozental wrote:
>
> >> And one important point: there are only three unnamed parameters.
There's
> > a
> >> bunch of other things that can be configured, and they all use *named*
> >> interface:
> >>
> >> desc.add_options()
> >> ("output", "file", "output file name").default_value("/tmp/abc")
> >> ;
> >
> > The question arize: Why do you prefer option description to defalt
value,
> > optional and other modifiers (I still could not reveal the mystery of
> > second parameter, so couldn't comment here). I prefer treat them all
same
> > way.
>
> I though I've told it to you previously: because uniform syntax will be
much
> more verbose....
I would not say "much more". From what I view the only difference is
'description' modifier.
> - Volodya
Gennadiy.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk