Boost logo

Boost Users :

From: Olaf Peter (ope-devel_at_[hidden])
Date: 2008-02-28 15:04:15


Thanks a lot, the wrong return type was stupid ...

> struct Bar {
>
> Bar( Foo& foo_ ) : foo( foo_ ) { }
>
> void operator()( const char* s_ ) {
> bind<void>(foo, _1, 42)(s_);
> }
>
> Foo& foo;
> };
>
> That compiles for me in VC++ 8

yes, but I do not get the expected output, I was not carefully enough?

$ ./bind
X, 11




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net