29 Aug
2015
29 Aug
'15
8:25 a.m.
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.