Subject: [Boost-bugs] [Boost C++ Libraries] #7777: at() member function required for program_options::variables_map
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-09 18:36:39
#7777: at() member function required for program_options::variables_map
--------------------------------------------------+-------------------------
Reporter: Nana Sakisaka <n.sakisaka@â¦> | Owner: vladimir_prus
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: program_options
Version: Boost 1.52.0 | Severity: Problem
Keywords: variables_map |
--------------------------------------------------+-------------------------
variables_map provides operator[] which sets an empty value to the option,
if the specified key does not exist.[[BR]]
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().
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7777> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC