Re: [Boost-users] boost.bind: nested bind fails
Wrap Handler in boost::protect. For lambda use boost::lambda::protect
bind(&Test2
, boost::protect(Handler))();
Sorry, but this does not work.
1>d:\projekte\libs\boost_1_35\build\x86\include\boost-1_35\boost\bind.hpp(232) : error C2664: 'void (Handler_t)' : cannot convert parameter 1 from 'boost::_bi::protected_bind_t<F>' to 'boost::_bi::bind_t
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 14 May 2008 14:58 pm, gfsdjkgf@Safe-mail.net wrote:
Wrap Handler in boost::protect. For lambda use boost::lambda::protect
bind(&Test2
, boost::protect(Handler))(); Sorry, but this does not work.
It looks like you need to change the template parameter on Test2, I guess to
something like
Test2
1>d:\projekte\libs\boost_1_35\build\x86\include\boost-1_35\boost\bind.hpp(2 32) : error C2664: 'void (Handler_t)' : cannot convert parameter 1 from 'boost::_bi::protected_bind_t<F>' to 'boost::_bi::bind_t
' 1>
- -- Frank -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIKzj95vihyNWuA4URAk2nAKCtMTZoRYieYFSlm+OM6UGmQfCjBwCfayxf LHC0/jxPWVA1nQ76dv2wl5A= =vjT5 -----END PGP SIGNATURE-----
AMDG gfsdjkgf@Safe-mail.net wrote:
Wrap Handler in boost::protect. For lambda use boost::lambda::protect
bind(&Test2
, boost::protect(Handler))(); Sorry, but this does not work.
I see. The explicit template parameter needs to be updated too.
#include
participants (3)
-
Frank Mori Hess
-
gfsdjkgf@Safe-mail.net
-
Steven Watanabe