
26 Jul
2006
26 Jul
'06
8 p.m.
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