Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-07-26 11:39:41

Michael Goldshteyn wrote:
> "Steven Watanabe" <steven_at_[hidden]> wrote in message
>> 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.

Boost list run by bdawes at, gregod at, cpdaniel at, john at