Boost logo

Boost :

Subject: Re: [boost] [function] Using boost::function when rtti is not available
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-12-03 16:05:22


David Genest wrote:
...
> My question to the list is: did anyone have a try at an
> implementation and could share it ? I have toyed with boost::function
> and sp_typeinfo.hpp and tried to replace occurrences of type_info in
> function_base.hpp, but I don't have enough understanding to finish
> the work and my early attempts have failed. As my current
> understanding goes, the function type could be generated with the
> sp_typeinfo trick. Is the sp_typeinfo.hpp route a viable one ?

sp_typeinfo.hpp wasn't quite up to the task, but I fixed it, and changed
function_base.hpp to use it. The relevant patches are:

https://svn.boost.org/trac/boost/changeset/58127
https://svn.boost.org/trac/boost/changeset/58128


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk