Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-03-08 02:16:52


Aljaz wrote:

> If I do:
> config.add_options()
> ("set1,s", boost::program_options::value<unsigned
> int>(&_option1)->default_value(20), "seting 1");
>
> it will compile..
> But when I run it I get assertion:
>
> Assertion failed: n == name.size()-2, file
> C:\...\boost\boost_1_33_1\libs\program_options\build\../src/options_description.cpp,
> line 118
>
> If I remove ',s' from the function names, it seems to work ok..
>
> It this a bug? Or am I missing something?

Would you mind posting a complete program that exposes
this behaviour? Generally, a complete program is preferred
for all bug reports against program_options, and I believe
authors of other libraries prefer that too, as code snippets
are neither compilable nor debuggable.

- 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