Boost logo

Boost :

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


Hi,

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
functionality?

Thanks,
Dave

===================================================
  David Abrahams, C++ library designer for hire
 resume: http://users.rcn.com/abrahams/resume.html

        C++ Booster (http://www.boost.org)
          email: david.abrahams_at_[hidden]
===================================================


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