Subject: Re: [boost] [AFIO] Review (or lack of it)
From: Michael Marcin (mike.marcin_at_[hidden])
Date: 2015-08-29 04:25:24
On 8/29/2015 1:30 AM, Rodrigo Madera wrote:
>>> Quite a few applications turn off or ignore std::cerr.
>>> At least given users the option to provide their own reporting function
>>> for emergencies.
>> It is trivial to redirect std::cerr elsewhere.
>> I am happy for std::cerr to become a macro, and this is logged at
> Why on earth would you want to do this? Exceptions are there for these
I don't know in which cases this is used, but if it's in the case of
UB/programming error I'd much rather it not use exceptions. Especially
if it is for precondition violations.
If it is failure to meet post conditions then by all means it should be
signaled with an exception.