Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-05-18 02:07:00


Ian McCulloch wrote:

>
> Hi,
>
> Following the example from program_options/overview.html, I tried
>
> positional_options_description pd;
> pd.add("output-file", 2).add_optional("input-file", -1);
>
> This doesn't work: positional_options_description::add() returns 'void',

Hi Ian,
this is most certainly an interface bug. I've just comitted a fix (and up
updated test) both to HEAD and RC_1_34_0 branch.

> and add_optional() is probably a typo for add() ?

Right, that a bug too, fixed.

Thank you for reporting!

- Volodya


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net