|
Boost : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-04-27 02:05:10
Hi Hartmut,
> Vladimir Prus wrote:
>
>> just before feature freeze, I've committed some changes to
>> program_options:
> I recently had some problems with changed semantics of a 0 (zero) as the
> style parameter in
>
> parse_command_line(argc, argv, opts_desc, 0, ...);
> here------------------------------------------^
>
> where the '0' in earlier versions was interpreted as the default_style,
> but it is interpreted now as is (as zero).
>
> Was this change a bugfix?
No, it was a regression. A fix and a test for this problem are now
committed.
OTOH, you can rewrite the above as:
command_line_parser(argc,
argv).options(desc).additional_parser(whatever).run()
Some kind of named parameters, which does not require to pass '0' for
'style' at all.
But parse_command_line function will be still there anyway.
Thanks,
Volodya
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk