Boost logo

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

OTOH, you can rewrite the above as:


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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at