
5 Nov
2008
5 Nov
'08
1:18 p.m.
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