Boost logo

Boost Users :

Subject: Re: [Boost-users] strange nested bind behavior
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-06-24 18:31:38


AMDG

Zachary Turner wrote:
> template<typename Handler>
> void func(int x, Handler callback)
> {
> callback(make_error_code(success), (size_t)0);
> }
>
> and now I get compilation error pointing to the line above that
> invokes callback, with the error along the lines of (it's on a
> different machine with no network access so i can't paste it)
>
> void boost::_bi::protected_bind_t<F>::operator()<boost::system::error_code,
> size_t>(A1&,A2&) const' : cannot convert parameter 2 from 'size_t' to
> 'size_t &

protect apparently doesn't even attempt perfect forwarding.
I think that it should behave the same way as plain bind.
Peter?

In Christ,
Steven Watanabe


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