
12 Apr
2004
12 Apr
'04
11:37 a.m.
Vladimir Prus <ghost@cs.msu.su> 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 www.boost-consulting.com