Boost logo

Boost Users :

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


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