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

Forward declarations of std types cause compilation errors on some platforms #88

Open
Rottbott opened this issue Oct 16, 2024 · 0 comments

Comments

@Rottbott
Copy link

When compiling for a well-known console platform using C++20, the standard library implementation uses an inline namespace for versioning. This conflicts with the forward declarations in boost/intrusive/detail/std_fwd.hpp and results in names being ambiguous (e.g. std::less vs std::some_inline_namespace::less).

I believe Boost is at fault here because forward declaring std types is not allowed; perhaps this is one reason why. Although it may hurt compile times, in order to use Boost on this platform it's necessary to include the real headers rather than forward declaring. This behaviour should be removed, or at least made optional.

Note: this is the same issue as this one in the container library.

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

1 participant