
17 Apr
2009
17 Apr
'09
3:48 a.m.
Gevorg Voskanyan wrote:
While experimenting with this one asserts:
$ bin/gcc-4.2.2/debug/multitoken_positional -m token1 token2 -- some_file multitoken_positional: ../../../../../svn_boost/trunk/libs/program_options/src/cmdline.cpp:295: std::vector<boost::program_options::basic_option<char>, std::allocator<boost::program_options::basic_option<char> > > boost::program_options::detail::cmdline::run(): Assertion `opt2.original_tokens.size() == 1' failed. Aborted
Should an exception be thrown instead, or this is a use-case worth to support?
Gevorg, thank you for providing a test case -- it is a great help to diagnose the problem. This should be now fixed in SVN HEAD: https://svn.boost.org/trac/boost/changeset/52440 Thanks, Volodya