Question about Program Options Vector processing for config file

I have the following in my code cnfOptions->add_options()("pacing", po::value< std::vector<float>
(&foo)->composing(), "Pacing experiment")
If my config file contains pacing= 3.14 pacing= 2.718 then it works as expected (foo contains the two float numbers). But "pacing" is really a pair of values, not some collection of independent values. I've tried to find a config file syntax more like pacing= 3.14 2.718 that Boost PO will accept, but I can't find one. (I get syntax error complaints about pacing.) Is there either (a.) a syntax for a single pacing= that PO will "compose" into the vector, or (b.) a change I could make to add_options that would make this work. For example, I'm not in love with vector if there is some other container that would work better. Thanks, Charles
participants (1)
-
Charles Mills