Opened 10 years ago

#7777 new Feature Requests

at() member function required for program_options::variables_map

Reported by: Nana Sakisaka <n.sakisaka@…> 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().

Change History (0)

Note: See TracTickets for help on using tickets.