
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