Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No-RTTI build after Boost.TypeIndex? #9

Closed
jpetso opened this issue Aug 14, 2015 · 2 comments
Closed

No-RTTI build after Boost.TypeIndex? #9

jpetso opened this issue Aug 14, 2015 · 2 comments

Comments

@jpetso
Copy link

jpetso commented Aug 14, 2015

I was wondering if, after switching to Boost.TypeIndex, it would be possible to enable builds without RTTI as per http://www.boost.org/doc/libs/master/doc/html/boost_typeindex/getting_started.html. The build check in config.hpp is still there, is it feasible to make it build without RTTI and what kind of work would that involve?

@Lastique
Copy link
Member

Basically, I didn't have the time to test if it works with type info emulation. The check is still there because of that and because I will probably have to reflect that configuration option in the library namespace, if I'm going to offer it.

If you want to try it out you can remove the check and build Boost with RTTI off or configure Boost.TypeIndex to use type info emulation (define BOOST_TYPE_INDEX_FORCE_NO_RTTI_COMPATIBILITY). You will have to use the same configuration when building your code as well. Let me know if you find any problems.

@Lastique
Copy link
Member

After examining the code more closely, RTTI is still required because the implementation uses dynamic_cast in a few places.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants