[eve7] Include json_fwd.hpp if available [v6.26]#11225
Merged
hahnjo merged 3 commits intoroot-project:v6-26-00-patchesfrom Aug 19, 2022
Merged
[eve7] Include json_fwd.hpp if available [v6.26]#11225hahnjo merged 3 commits intoroot-project:v6-26-00-patchesfrom
hahnjo merged 3 commits intoroot-project:v6-26-00-patchesfrom
Conversation
(cherry picked from commit a927c57)
Version 3.11 of nlohmann/json introduced "versioned, ABI-tagged inline namespace"s, which breaks our forward declaration. Fortunately, we can assume the json_fwd.hpp header to be present starting from that same version because the JSON_MultipleHeaders option now defaults to ON and even if not, json_fwd.hpp is installed since patch version 3.11.2. For earlier versions, both methods work but json_fwd.hpp isn't guaranteed to be installed. Still use it if available. Fixes root-project#11130 (cherry picked from commit ed56a35)
Our forward declaration in REveElement.hxx breaks with the versioned namespaces in 3.11, so we require the json_fwd.hpp header. (cherry picked from commit ee52a8b)
|
Starting build on |
linev
approved these changes
Aug 19, 2022
|
Build failed on mac1015/cxx17. Errors:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #11130
Backport of #11205