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

Use forward decls for nlohmann/json types. #9278

Merged
merged 6 commits into from
Nov 12, 2021

Conversation

Axel-Naumann
Copy link
Member

Works around issues with modules (alternative solution to #9267)

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.
@Axel-Naumann Axel-Naumann self-assigned this Nov 12, 2021
@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1015/python3, mac11.6/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on mac1015/python3.
Running on macitois21.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@Axel-Naumann
Copy link
Member Author

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.

@Axel-Naumann
Copy link
Member Author

Test failure is unrelated (according to @eguiraud ).

Copy link
Member

@bellenot bellenot left a 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...

@Axel-Naumann Axel-Naumann merged commit 666cd79 into root-project:master Nov 12, 2021
@Axel-Naumann Axel-Naumann deleted the json-fwd-decl branch November 12, 2021 15:24
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

Successfully merging this pull request may close these issues.

3 participants