Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-05-29 05:27:42


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....

- Volodya


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