
26 Jul
2006
26 Jul
'06
3:39 p.m.
Michael Goldshteyn wrote:
"Steven Watanabe" <steven@providere-consulting.com> wrote in message news:44C6887C.2070801@providere-consulting.com...
AMDG Actually, boost::bind::operator() takes it's arguments by reference
Even if it does, it still stores copies of those arguments, internally, per the documentation of boost::bind.
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.