Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost] [program options] Recommended way to specify a list of strings
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-12-23 01:04:19


Sanjit Jhala wrote:

> How would I specify an empty vector of strings as the default value for this
> option?
>
> po::value< vector<string> >()->default_value(??)

Use vector<string>() as the default value.

- 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