
8 Mar
2007
8 Mar
'07
7:16 a.m.
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