Boost logo

Boost Users :

From: Peter Soetens (peter.soetens_at_[hidden])
Date: 2006-08-16 04:34:33


On Friday 11 August 2006 23:33, Rodney Morison wrote:
> Peter Soetens wrote:
> > Hi,
> >
> > I was looking for a way to convert a member function type:
> >
> > bool (X::*)(int) or bool (X::)(int)
> >
> > to the 'C' equivalent, without the class pointer:
> >
> > bool (*)(int) or bool(int)
>
> You might want to read the (excellent) article on function pointers in
> C++ at http://www.codeproject.com/cpp/FastDelegate.asp. That will
> explain why your question is highly nontrivial, but a worthy query for
> certain applications (like delegates).

Thanks for this interesting link. Except for the adaptation of
boost::function, I wonder if C++0x has any plans for adding delegates ?
The dynamic memory allocation that boost::function requires (upon 'binding')
is also a pain for my applications.

Peter

-- 
Peter Soetens -- FMTC -- <http://www.fmtc.be>

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