Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-09-02 07:31:52


Peter Barker:

> In my program auto_ptr is being used in boost::bind via boost::ref and it
> works fine. Does this work by design, or coincidence? I couldn't see
> boost::reference_wrapper and boost::addressof handling std::auto_ptr
> specially.

It works by design. boost::mem_fn uses get_pointer, and get_pointer for
auto_ptr returns .get().

For lambda::bind, you may want to try using *ll::var(p) instead;
lambda::bind has no special support for smart pointers.


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