Opened 10 years ago
#7777 new Feature Requests
at() member function required for program_options::variables_map
Reported by: | Owned by: | Vladimir Prus | |
---|---|---|---|
Milestone: | To Be Determined | Component: | program_options |
Version: | Boost 1.52.0 | Severity: | Problem |
Keywords: | variables_map | Cc: |
Description
variables_map provides operator[] which sets an empty value to the option, if the specified key does not exist.
I think it would be nice and more robust to also provide an overrided member function at() which throws an exception for such circumstances.
Related ticket: #7495. If implementing #7495, it will be also required to handle boost::optional values for at().
Note:
See TracTickets
for help on using tickets.