Opened 10 years ago

#7933 new Feature Requests

Enable population of a map with options described using "*" wildcard

Reported by: smntov@… Owned by: Vladimir Prus
Milestone: To Be Determined Component: program_options
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc:

Description

Enable population of a map with options described using "*" wildcard.

map<string, int> itemsMap; options_description items("items options");

items.add_options()

("item_*",value<map<string, int>>(&itemsMap)->multitoken(), "items")

;

Change History (0)

Note: See TracTickets for help on using tickets.