|
Boost : |
From: Me here (rhjrjlbk2002_at_[hidden])
Date: 2006-02-15 11:23:43
Hello,
I want to make a binder to do an assignment like:
------ example ------
#include "boost/bind.hpp"
int main()
{
int X = 0;
boost::bind<int&>(X, _1)( 1 );
return 0;
}
--- end ---
But is does not compile. I know that I can write small
function, but I already wrote too much such small
functions.
I want to use this functor with smart_ptr, which
allows to call a function, but I need an assignment.
Your advice, please.
Alexander
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk