c++ - boost::program_options: parsing multi-valued options in ini-files in a single name-value pair -


if specify

ip_addresses=monkeys ip_addresses=baboons 

parse_config_file creates multiple strings resulting in std::vector< std::string> output.

i want list multiple strings on single line.

ip_addresses=monkeys, baboons

the result single string in std::vector< <std::string> >. if possible, how 1 express seperator ?

the documentation not specify if string seperation allowed in ini-files. however, multi-valued settings can seperated when supplied command line switches.


Comments