$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-07-26 11:39:41
Michael Goldshteyn wrote:
> "Steven Watanabe" <steven_at_[hidden]> wrote in message
> news:44C6887C.2070801_at_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.