Boost logo

Boost Users :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2003-03-19 10:43:17


On Tuesday 18 March 2003 10:50 pm, Faheem Mitha wrote:
> A small comment. The paper you quote above
> (http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/2003/n1438.htm)
> does clearly state that the return type is unspecified, but does not
> say anything further (as far as I can see) about how to handle
> assignments like above, and it is presumably not part of the official
> documentation anyway.

There is one example (just before section II) in the proposal, but because
Bind and Function are completely separate libraries (with separate
proposals), the proposal does not expand on the example.

> Also, the bind documentation itself (again, as far as I can see) does
> not say anything about how to handle assignments. Therefore, would it
> not be a good idea to include an example in the bind documentation
> showing how assignments should be handled? In any case, more and
> varied examples are always a good thing.

There is an example of using the two libraries together here:
  http://www.boost.org/libs/bind/bind.html#with_boost_function
but perhaps we need something that says "if you want to store a bind object,
use Function" instead of "if you want to use Function with bind, you can do
this (storing a bind object)".

        Doug


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net