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

Currently not possible to compile range-v3 with -fno-rtti flag set #1764

Open
yury-fedorov opened this issue Jan 22, 2023 · 2 comments · May be fixed by #1765
Open

Currently not possible to compile range-v3 with -fno-rtti flag set #1764

yury-fedorov opened this issue Jan 22, 2023 · 2 comments · May be fixed by #1765

Comments

@yury-fedorov
Copy link

Adding -fno-rtti flag leads to fail the build with the following errors:

range-v3-src/include/range/v3/view/any_view.hpp:129:24: error: use of typeid requires -frtti
, info_(&typeid(rtti_tag))

range-v3-src/include/range/v3/view/any_view.hpp:135:58: error: use of typeid requires -frtti
RANGES_ASSERT(obj_ && info_ && *info_ == typeid(rtti_tag));
^
range-v3-src/include/range/v3/detail/config.hpp:63:23: note: expanded from macro 'RANGES_ASSERT'
#define RANGES_ASSERT assert

@frederick-vs-ja
Copy link

I think when (static) RTTI is disabled, any_view shouldn't be provided.

@yury-fedorov
Copy link
Author

yury-fedorov commented Jan 30, 2023 via email

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

Successfully merging a pull request may close this issue.

2 participants