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
BOOST_LOG_TRIVIAL and C++20 modules #112
Comments
|
I think this should be reconsidered based on the Microsoft feedback given here: https://developercommunity.visualstudio.com/t/error-C7631:-when-instantiating-template/10476144 But also it links to this issue: #111 |
I do not agree with their feedback, I left a comment there. And if it is indeed the intended behavior that is mandated by the C++ standard then I consider modules specification broken. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear all,
I am facing the following challenge when using the BOOST_LOG_TRIVIAL functionality from C++20 modules.
This code fails to compile on my Visual Studio 2022 with the following error message.
My current understanding of this issue is that, based on Understanding C++ Modules: Part 3: Linkage and Fragments,
severity
has module internal linkage because it is in an anonymous namespace. But asbar
is a template, it must also be available to importers that instantiate the template, which is not allowed. So the code fails to compile.Is there any way around this or can the library be improved to also support this scenario?
Thanks in advance,
Felix
The text was updated successfully, but these errors were encountered: