Boost logo

Boost :

Subject: Re: [boost] [function] "paranoia" vs efficiency
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-10-02 12:22:40

Andrey Semashev wrote:

> I think this branching can be effectively elided without sacrificing
> safety if boost::function maintains never-empty internal guarantee. IOW,
> if function::empty() returns true, then the function object is actually
> pointing to some private function that simply throws upon being invoked.

That looks like a very good idea.

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