Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-11-12 22:38:11


For most applications, one wouldn't care that the constructor of
boost::function<> might throw an exception. In my case, however, I need to
ensure that it won't. I think I understand why dynamic allocation is
neccessary to boost::function, but I think there's a wide class of
applications for which it shouldn't be neccessary. I'm thinking of
operations which need to use a function object, but don't need to store it
(think for example of a suite of algorithms operating on a particular type
of iterator).

How far is boost::function from being able to provide this sort of


  David Abrahams, C++ library designer for hire

        C++ Booster (
          email: david.abrahams_at_[hidden]

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