Boost logo

Boost Users :

Subject: Re: [Boost-users] [program_options] Using multitokens
From: daniel (dnettels_at_[hidden])
Date: 2008-11-05 08:18:31


Ryan McConnehey schrieb:
> In the example documentation a multitoken is used for strings as follows:
>
> ("email",
> boost::program_options::valuevalue<std::string>()->multitoken(), "email
> to send to")
>

Hi,

I had the same problem. I believe the line in the documentation is
wrong. I tried:
("email", boost::program_options::valuevalue<std::vector< <std::string>
>()->multitoken(), "email to send to")

This works. Each token is saved in a string stored in a vector.

Daniel


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