f35 kdevelop 5.6.2 :: within project sting_view not found in std?
René J.V. Bertin
rjvbertin at gmail.com
Fri Feb 11 10:46:23 GMT 2022
On Friday February 11 2022 11:33:46 Milian Wolff wrote:
>> Any idea why string_view could not be found in std?
According to my C++ docs (from cpppreferences) you need to #include <string_view> one way or another. I don't know what the standard really says but it makes sense to me, no matter what certain compilers may do to "help" in this domain (wouldn't be the 1st time I have to patch code this way to get it to build here).
Oh, and indeed, G++ uses a much more recent C++ standard by default than clang does. Clang may in fact still default to "good old C++", something from before C++11, but I can't say I'm very up to date in my clang nor GCC installations).
R.
More information about the KDevelop
mailing list