|
Boost Users : |
From: Austin Bingham (austin.bingham_at_[hidden])
Date: 2005-02-24 10:13:47
> I think I'll be able to implement this. OTOH, this will become command-line
> specific. What if you want to parse --position from config file:
>
> position=10:11:12:N 13:14:15:W
>
> in this case there are no separate token, the value is considered to be one
> token. So probably, the best approach is to write your validator so that it
> operates on a single string, and make program_options merge the tokens.
> This way, the same validator will work both the command line and config
> file.
That's all sounds great to me. As long as I don't have to force my
users to use extra quotes and stuff, I'm willing to do whatever is
necessary in my validator.
Austin
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