
7 Mar
2007
7 Mar
'07
6:35 p.m.
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? Thanks for help again Best regards