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

[10.0.0] Use of std.h fails without RTTI enabled #3426

Closed
dandee opened this issue May 10, 2023 · 1 comment
Closed

[10.0.0] Use of std.h fails without RTTI enabled #3426

dandee opened this issue May 10, 2023 · 1 comment
Labels

Comments

@dandee
Copy link

dandee commented May 10, 2023

Trying to use "fmt/std.h" results in compilation error when RTTI is disabled.

/project/../../src/extlib/fmt/include/fmt/std.h:290:32: error: use of typeid requires -frtti
    const std::type_info& ti = typeid(ex);
                               ^

Reproduction:
https://godbolt.org/z/9fnbK3E5x

@vitaut
Copy link
Contributor

vitaut commented May 10, 2023

We don't officially support building with RTTI disabled but a PR that makes that usage conditional would be welcome provided that it is not too intrusive. Alternatively, you can use {fmt} without fmt/std.h since the latter only provides some optional standard library formatters.

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

No branches or pull requests

2 participants