Open pikacic opened 1 year ago
This is because they did that https://github.com/root-project/root/blob/05c2b9ef3ff35b9023eb7b9e20db412f5f8dd89b/core/foundation/inc/ROOT/span.hxx#L153
IE inject in the std namespace they own span implementation which is just asking for trouble
@RoyBellingan I cannot follow yet, this header should only be found as ROOT/span.hxx
, not as span
?
I think I agree with @pikacic implicit verdict that this is a modules design issue...
Check duplicate issues.
Describe the bug
With ROOT v6-28-00-patches@v6-28-04-96-g9248a09 compiled with C++17 (not C++20) the code
(found in
range/v3/range/access.hpp
) causes an error in the interpreter:Meaning that the interpreter thinks the header
<span>
exists, but it cannot be loaded.What I find very surprising too, is that (still without C++20) I can do:
which looks wrong to me.
What is the expected behaviour?
__has_include(<span>)
should evaluate to false in C++17 builds.How to reproduce?
from lxplus.cern.ch
ROOT version
v6-28-00-patches@v6-28-04-96-g9248a09
How did you install ROOT?
LCG nightly builds in /cvmfs/sft-nightlies.cern.ch
Which operating system are you using?
Linux CentOS 7
Additional context
No response