From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-07-25 14:11:34


ALiX wrote:

> In the latest implementation of boost (1.34), the error class in
> boost::program_options is defined as a subclass of std::logic_error. This
> is, however, not stated in the documentation. In the documentation the
> class error is described as if it has no superclass from which it
> inherits.

This is documentation issue, I think. Docbook/BoostBook toolchain
does not show base classes in some cases.

> In my programs, can I safely rely on the fact that error
> inherits from std::logic_error, and so comfortably use the what() function
> to extract the error messages? Might this change in later implementations?

I don't plan any such change in a foreseeable future.

- Volodya