
25 Jun
2007
25 Jun
'07
4:20 a.m.
On 6/24/07, Slawomir Lisznianski <sl@paramay.com> wrote:
function0<void> f = bind(&foo::on_event, &fo); <-- doesn't compile
This does compile for me with Boost 1.34.0. But using Boost 1.33.1, I saw the same compile error. Since on_event is a function object you could bind it directly. You can then avoid making a copy by using Boost.Ref. function0<void> f = bind(ref(fo.on_event)); Daniel