
23 Jul
2009
23 Jul
'09
6:55 a.m.
Zachary Turner wrote: [snip]
Yes I tried that as well but was not able to get it working. [snip]
I managed to get something similar working, by making the protected type explicit. Please see the code snippet below. Kind regards, Rutger template< typename Something > class some_class { typedef some_class<Something> this_type; template< typename Handler > void func_a( ..., Handler handler ) { async_something( ..., boost::bind( &this_type::template func_b< boost::_bi::protected_bind_t<Handler> >, this, ..., boost::protect(handler) ) ); } template < typename Handler > void func_b( ..., Handler ) { } };