Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-07-26 07:16:06


ALiX wrote:

> Vladimir Prus <ghost <at> cs.msu.su> writes:
>
>> > 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.
>
> Great! Thanks for the answer. I assume that even if a change would be made
> later, the error class would still have the what()-function (otherwise,
> the constructor argument would be meaningless).

The only reason for changing a base class will be appearance of
some boost::exception, with support for i18n messages and what not.
I surely expect such a boost::exception to have the 'what()' method,
otherwise it won't be of much use. In any case, I don't think there's
boost::exception around yet.

- Volodya


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net