
24 Jun
2009
24 Jun
'09
4:31 p.m.
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