[Bind] bind to member functions

26 Jan
2009
26 Jan
'09
5:01 p.m.
Hello, this works fine, struct A { template< typename X > void f( bool ) { bind(&A::f<X>, this, _1)( true ); } }; whereas template< typename Z > struct A { template< typename X > void f( bool ) { bind(&A<Z>::f<X>, this, _1)( true ); } }; gives me trouble in the at the line of bind form of "expected primary-expression before ‘>’ token". I've tried numerous typedefs, but that didn't do the trick. Many thanks in advance for help on this, Rutger
5872
Age (days ago)
5872
Last active (days ago)
2 comments
2 participants
participants (2)
-
Olaf Krzikalla
-
Rutger ter Borg