Boost logo

Boost :

Subject: Re: [boost] [function] invoking without requiring boost::throw_exception
From: Boris Schaeling (boris_at_[hidden])
Date: 2010-09-05 08:56:22

On Thu, 02 Sep 2010 17:36:26 +0200, Peter Myerscough-Jackopson
<peter.myerscough-jackopson_at_[hidden]> wrote:

> [...]I am checking that the function object contains a function before
> calling it. There is therefore no need for the invocation of the
> function to check if it is valid, but also there is no method circumvent
> this checking, and therefore my program requires the definition of
> boost::throw_exception, when really it is not needed. This is a concern
> because I intend on compiling my code into a library and do not wish to
> require the user to define boost::throw_exception, especially when I am
> guaranteeing it isn't going to be called from this site. I liked the
> idea of a templated NOP for the function library, but at the very least
> an unchecked invocation method would be great, or a nop-if-empty
> invocation method would be useful.

This has recently come up on the Boost.Asio mailing list, too - see
<>. I think
everyone wants to see this change.


> [...]

Boost list run by bdawes at, gregod at, cpdaniel at, john at