No string_view on lxplus


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


On lxplus, when compiling codes, we found a problem

/cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.99/InstallArea/x86_64-centos7-gcc8-opt/include/ROOT/RStringView.hxx:19:23: fatal error: string_view: No such file or directory
 #include <string_view>

We have used

asetup AnalysisBase,21.2.99

and

lsetup cmake

The codes can compile several months but it cannot run now.

Problem Solved. Thanks.

In case someone else ends up here, ROOT backports string_view in header <ROOT/RStringView.hxx> for C++11 and C++14 builds. It picks it up from the STL for C++17 builds (in which case ROOT/RStringView.hxx simply transitively includes <"string_view>").

Cheers,
Enrico

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.