|
Boost : |
Subject: Re: [boost] [outcome] Ternary logic -- need an example
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2017-05-19 15:53:37
> If I take your library, and also apply the "Sea of noexcept" approach, this
> means that if I call `if(o.error())` to check if I have an error, I might
> be triggering `std::terminate()`. Scary, but maybe this is ok, it you treat
> empty outcome as a really abnormal state.
As with all software libraries, you have to assume that the end user has
read the documentation and has some understanding of the standard library.
Niall
-- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk