Boost logo

Boost Users :

Subject: Re: [Boost-users] [program_options] negative numbers in options value<vector<int> >()->multitoken()
From: Andrzej Zielinski (072404_at_[hidden])
Date: 2011-02-04 07:01:00


Boost Dev,

On linux version 1.34.1 gcc 4. there is no problem
On cygwin version 1.43 gcc 4.3.4 there is a problem

Has anything changed ? I looked at revision history and can not find
anything ?

Regards
Andrzej

On Thu, Feb 3, 2011 at 5:01 PM, Andrzej Zielinski <072404_at_[hidden]> wrote:

> Hi,
>
> I am using boost::program_options and found a problem with passing a series
> of positive/negative numbers.
> i.e
> myProgram.out --system 0 -2 2 -3
>
> Similar problem like in:
>
> http://stackoverflow.com/questions/4107087/accepting-negative-doubles-with-boostprogram-options
> I do not want to disable short options. I want to make quotes working.
>
> So when I call
>
> myProgram.out --system '0 -2'
> error: in option 'system': invalid option value
>
> myProgram.out --system 0 -2
> error: unknown option -2
>
> What quotation do you mean ?
>
> I am using bash, on CYGWIN and in linux



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