|
Boost : |
Subject: Re: [boost] [AFIO] Review (or lack of it)
From: Michael Marcin (mike.marcin_at_[hidden])
Date: 2015-08-28 20:15:58
On 8/28/2015 4:31 AM, Andrey Semashev wrote:
>
> Calling std::terminate is also something I would call unexpected and
> harmful. You don't know what the application is doing - one thread may
> be doing something with Boost.AFIO and another may be doing domething
> important and unrelated. Throw exceptions on errors, where possible.
> Document UB when not.
>
If it's documented as UB and implemented as calling std::terminate and
prints to std::cerr that seems to satisfy your requirements without
making any changes to the code.
I assume you want the code to not do this however.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk