Boost logo

Boost :

From: Michael Hohmuth (hohmuth_at_[hidden])
Date: 2002-11-04 11:19:26


The following patch (in attachment 1) adds a "struct sig" to Boost's
function<> template, allowing it to be used in bind expressions like
this:

  function <unsigned(bool, double)> f1 = bind (func_impl, 15, _1, _2);
  function <unsigned(double)> f2 = bind (f1, false, _1);
  function <unsigned()> f3 = bind (f2, 4.0);

(A full test program is in attachment 2.)

Without the patch, the second bind would fail.

Regards,
Michael

-- 
hohmuth_at_[hidden]
http://home.pages.de/~hohmuth/





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