Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2982: Required Arguments
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-04 12:08:04
#2982: Required Arguments
------------------------------------------------+---------------------------
Reporter: David Doria <daviddoria@â¦> | Owner: vladimir_prus
Type: Feature Requests | Status: new
Milestone: Boost 1.39.0 | Component: program_options
Version: Boost Development Trunk | Severity: Not Applicable
Keywords: Required Arguments |
------------------------------------------------+---------------------------
Comment(by s.ochsenknecht@â¦):
I implemented option (1), see patch_ticket2982_2.diff and the attached
testcase required.cpp.
store() now adds empty variable_value's to the variable_map. I also
override the count() method of the underlying std::map in that way that
the empty variable_values are not counted.
Hm, this can have some side effects when operator[] is used:
const variable_value& operator[](const std::string& name) const
But I think the user has to check for !empty() anyhow ..!?
Please comment.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2982#comment:6> 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:01 UTC