Boost logo

Boost :

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
>> https://github.com/BoostGSoC13/boost.afio/issues/104.
>>
>
> Why on earth would you want to do this? Exceptions are there for these
> cases.
>

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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk