|
Boost : |
From: Hubert Holin (Hubert.Holin_at_[hidden])
Date: 2003-01-31 09:35:42
Somewhere in the E.U., le 31/01/2003
In article <00d801c2c927$8d06dd20$1d00a8c0_at_pdimov2>,
"Peter Dimov" <pdimov_at_[hidden]> wrote:
> From: "Hubert Holin" <Hubert.Holin_at_[hidden]>
>
> > 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk