Boost logo

Boost Users :

Subject: Re: [Boost-users] [program_options] Multitoken and positional options; assertion failure
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-04-17 05:48:30


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


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