Using basic_string_view = ::std::experimental::basic_string_view

Good day!
Unfortunately I can’t compile my geant4 program. I use root tree for file output. I already update root to latest version with c++1z, but till now I have error:

error: ‘experimental’ in namespace ‘std’ does not name a type
using basic_string_view = ::std::experimental::basic_string_view<_CharT,_Traits>;

How I can fix it?

Please read tips for efficient and successful posting and posting code

ROOT Version: 6.24
Platform: ubuntu 18.04
Compiler: clang++

errors like this are typically caused by a C++ standard mismatch.
If you get this error while compiling ROOT itself: try restarting the build from a clean (empty) build directory. If you are getting this error while compiling an application that depends on ROOT: verify that both ROOT and that application are compiled with the same C++ standard – ROOT’s is visible in the compilation flags printed by root-config --cflags.

I hope this helps!

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

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