[Boost-bugs] [Boost C++ Libraries] #5454: different behavior to report one kind of errors

Subject: [Boost-bugs] [Boost C++ Libraries] #5454: different behavior to report one kind of errors
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-11 07:30:54


#5454: different behavior to report one kind of errors
----------------------------------------+-----------------------------------
 Reporter: anberlin.myplace@… | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: program_options
  Version: Boost 1.45.0 | Severity: Problem
 Keywords: program options exception |
----------------------------------------+-----------------------------------
 If 'configuration file' has option wich not presented in
 'options_description', then 'parse_config_file' throws 'logic_error'.

 If 'options_description' has option wich not presented in 'configuration
 file', then 'variablesMap[ "option" ].as<...>()' throws 'bad_cast'.

 It's will be good to have one type of error reporting: exception from
 'parse_config_file'.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5454>
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:06 UTC