|
Boost : |
From: Michael Goldshteyn (mgoldshteyn_at_[hidden])
Date: 2006-07-26 16:00:42
>
> The expression boost::bind( f, x, _1 ) stores copies of f, x, and _1. When
> the returned function object is called, however, _1 binds directly to the
> first input argument, without a copy. You can test this by trying it on a
> noncopyable object.
Aha, so only a copy of the boost::arg placeholder object is made where _1
appears and
this is what is copied when the binder function object is constructed.
Thanks for the clarification,
Mike
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk