Boost logo

Boost Users :

From: Douglas Paul Gregor (gregod_at_[hidden])
Date: 2002-07-03 19:52:43


On Thu, 4 Jul 2002, Jon Wang wrote:
> Oh, yes, function0 is enough. Thanks very much, Doug.
> Well, could the copy constructing from a boost.bind result be avoided?
> How about the following solution? Thanks.

This solution won't work, because you are storing a reference to a
temporary object, which will cease to exist after the constructor call.
Then the destructor is accessing memory that has already been destructed
and probably reused.

        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