Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-04-12 06:37:35

Vladimir Prus <ghost_at_[hidden]> writes:

> Looking at the code, it seems boost::bind uses non-const reference for
> operator() -- the actual forwarding -- and by-value for arguments to 'bind'
> itself.

Note that templated non-const references will bind to const and
non-const lvalues (with different 'T' deduction). The only things
they won't bind to are rvalues.

Dave Abrahams
Boost Consulting

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