Boost C++ Libraries: Ticket #5454: different behavior to report one kind of errors https://svn.boost.org/trac10/ticket/5454 <p> If 'configuration file' has option wich not presented in 'options_description', then 'parse_config_file' throws 'logic_error'. </p> <p> If 'options_description' has option wich not presented in 'configuration file', then 'variablesMap[ "option" ].as&lt;...&gt;()' throws 'bad_cast'. </p> <p> It's will be good to have one type of error reporting: exception from 'parse_config_file'. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5454 Trac 1.4.3 anonymous Mon, 11 Apr 2011 07:31:29 GMT attachment set https://svn.boost.org/trac10/ticket/5454 https://svn.boost.org/trac10/ticket/5454 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">config_file_test.cpp</span> </li> </ul> Ticket anonymous Mon, 11 Apr 2011 07:31:47 GMT attachment set https://svn.boost.org/trac10/ticket/5454 https://svn.boost.org/trac10/ticket/5454 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">config_file_1</span> </li> </ul> Ticket anonymous Mon, 11 Apr 2011 07:31:59 GMT attachment set https://svn.boost.org/trac10/ticket/5454 https://svn.boost.org/trac10/ticket/5454 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">config_file_2</span> </li> </ul> Ticket