Boost C++ Libraries: Ticket #4133: std::logic_error as a base class for program_options::error https://svn.boost.org/trac10/ticket/4133 <p> "19.1 Exception classes </p> <p> 1 The Standard C + + library provides classes to be used to report certain errors (17.4.4.8) in C + + programs. In the error model reflected in these classes, errors are divided into two broad categories: logic errors and runtime errors. </p> <p> 2 The distinguishing characteristic of logic errors is that they are due to errors in the internal logic of the pro- gram. In theory, they are preventable. </p> <p> 3 By contrast, runtime errors are due to events beyond the scope of the program. They cannot be easily pre- dicted in advance. The header &lt;stdexcept&gt; defines several types of predefined exceptions for reporting errors in a C + + program. These exceptions are related by inheritance." </p> <p> From what POV po::unknown_option is 'due to errors in the internal logic of the program'? All po:: errors should be separated into two groups (runtime and logic) or std::exception should be used as a base class. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4133 Trac 1.4.3 olafvdspek@… Tue, 28 Jun 2011 14:39:10 GMT <link>https://svn.boost.org/trac10/ticket/4133#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4133#comment:1</guid> <description> <p> I'd like to see this fixed too. </p> </description> <category>Ticket</category> </item> </channel> </rss>