Boost logo

Boost Users :

From: Aljaz (aljaz.fajmut_at_[hidden])
Date: 2007-03-07 13:35:03


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


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