Boost logo

Boost Users :

From: Victor A. Wagner Jr. (vawjr_at_[hidden])
Date: 2005-01-22 17:44:45

At Friday 2005-01-21 14:50, you wrote:
>I have been using program_options for a while and it works great. However,
>I don't know how to make a program which behaves like this:
> programname -blah abc -blah def -blah ghi
>In my code I would read the option blah as a vector of strings, like:
>po::options_description desc("Configuration");
> ("blah",
> po::value<vector<string>>(),
> "the location of the blah device")
>po::store(po::parse_config_file(config_file, desc), vm);
>When I try to compile the code under MSVC++ 7.0 I get this error (among
>error C2947: expecting '>' to terminate template-argument-list, found '>>'

yeah, put a space between the > and the > in the
line po::value<vector<string> >(),

>Is it possible for me to do what I am trying to with the program_options
>Boost-users mailing list

Victor A. Wagner Jr.
The five most dangerous words in the English language:
               "There oughta be a law"

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at