-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Allow to disable inline namespaces completley #3746
Comments
Removing bug label as this is a compiler bug with MSVC. We use several versions in the CI. |
That's already possible. https://json.nlohmann.me/features/namespace/#disabling-the-inline-namespace-completely |
We don't test C++/CLI aka. managed C++. Do we even support non-standard C++ officially? |
Sorry I missed the C++/CLI part. No, we don't test it (yet - happy to see a PR). And also no, we do not support non-standard C++. |
You are right, redefining the BEGIN and END namespaces macros should be sufficient. I will test that and report back here. |
works as expected. thx. |
Description
Inline namespaces do not coexist with C++/CLI. Therefore it would be great, to allow disabling inline namespaces at all.
Discussion from Microsoft Developer Community
https://developercommunity.visualstudio.com/t/ccli-bug-with-inline-namespaces-header/14964
Reproduction steps
Create a project with C++/CLI support and include any nlohmann/json Header.
Expected vs. actual results
No compiler error.
Minimal code example
No response
Error messages
Compiler and operating system
Visual C++ 16.11.18 (Visual Studio 2019)
Library version
3.11.2
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: