|
Boost : |
Subject: Re: [boost] [variant2] documentation request
From: degski (degski_at_[hidden])
Date: 2019-03-05 06:27:09
On Mon, 4 Mar 2019 at 20:00, Emil Dotchevski via Boost <
boost_at_[hidden]> wrote:
> This, by the way, is proof positive that noexcept is
> defective: the thing that specifies that something can't throw is,
> practically speaking, useless in checking if something may throw.
>
There's no need for proof of its *defectiveness for the purpose* you would
like to use it: "Note that a *noexcept* specification on a function is not
a compile-time check; it is merely a method for a programmer to inform the
compiler whether or not a function should throw exceptions." *)
degski
*) https://en.cppreference.com/w/cpp/language/noexcept_spec
-- *"Big boys don't cry" - **Eric Stewart, Graham Gouldman*
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk