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")


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.


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