
15 Feb
2006
15 Feb
'06
4:23 p.m.
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