Somewhere in the E.U., le 31/01/2003
In article <00d801c2c927$8d06dd20$1d00a8c0@pdimov2>,
"Peter Dimov" <[EMAIL PROTECTED]> wrote:
> From: "Hubert Holin" <[EMAIL PROTECTED]>
>
> > eater(::boost::bind(std::mem_fun_ref(&(A::operator ())), a));
>
> eater(a) is much simpler, I think.
Indeed!
>
> > eater(::boost::bind(std::mem_fun_ref(&(AN::operator ())), an, 1));
>
> eater(bind(an, 1));
Doesn't work (with MWCWPro 8.3, at least), giving me the error:
Error : 'result_type' is not a member of class 'AN'
(point of instantiation: 'main(int, char **)')
(instantiating: 'boost::_bi::bind_t<boost::_bi::unspecified, AN,
boost::_bi::list1<boost::_bi::value<int>>>')
(instantiating: 'boost::_bi::result_traits<boost::_bi::unspecified,
AN>')
bind.hpp line 59 typedef typename F::result_type type;
Merci
HH
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost