Boost logo

Boost :

Subject: [boost] [function] Using boost::function when rtti is not available
From: David Genest (david.genest_at_[hidden])
Date: 2009-11-24 16:22:42


Reposting this from the user mailing list, as it generated no comments.

I am in a gaming build environment that has traditionally turned off rtti because of space and portability issues.

But, I would like to use the very useful boost::function. On MSVC boost::function works, but fails on g++ for the ps3. I have read on the lists that it is possible to implement a rtti-less version, and that this is even wanted in the future.


I know of a lot of people that would like this dependency on rtti removed.

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 ?

Thank you,


Boost list run by bdawes at, gregod at, cpdaniel at, john at