|
Boost Users : |
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-05-14 15:09:49
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 14 May 2008 14:58 pm, gfsdjkgf_at_[hidden] wrote:
> > Wrap Handler in boost::protect. For lambda use boost::lambda::protect
> >
> > bind(&Test2<Handler_t>, 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<boost::_bi::protected_bind_t<Handler_t> >
Of course, in your minimal example code the second bind isn't really needed at
all, but I guess your real use case is different.
> 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<R,F,L>' 1>
- --
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFIKzj95vihyNWuA4URAk2nAKCtMTZoRYieYFSlm+OM6UGmQfCjBwCfayxf
LHC0/jxPWVA1nQ76dv2wl5A=
=vjT5
-----END PGP SIGNATURE-----
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