-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Use forward decls for nlohmann/json types. #9278
Conversation
This reverts commit 0cdfa69. We need to hide json includes: modules cannot cope with them, and it introduces a runtime requirement to find json.
This reverts commit 89c5d0c. This file does not exist on all platforms for external nlohmann. Will have to use "proper" fwd decls instead.
This reverts commit 1c38aa0. We cannot rely on json_fwd (does not exist for all nlohman packages). Will have to use proper fwd decls instead.
Starting build on |
Build failed on mac1015/python3. Failing tests: |
FYI, https://github.com/nlohmann/json/blame/develop/include/nlohmann/json_fwd.hpp#L27 shows how rarely this changes and demonstrates that (possibly version protected / restricted) fwd decls are viable. |
Test failure is unrelated (according to @eguiraud ). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea if that's correct, but I trust you...
Works around issues with modules (alternative solution to #9267)