Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-04-09 16:02:59


From: "Jesse Jones" <jesjones_at_[hidden]>

> 6) Trying to invoke an empty function seems like a precondition
> violation to me. Asserting instead of throwing seems preferable.

I agree with most of your points, however invoking an empty function must
throw for boost::function<T&> to be default constructable. (What would you
return from op() if it didn't throw?)

--
Peter Dimov
Multi Media Ltd.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk