Re: f35 kdevelop 5.6.2 :: within project sting_view not found in std?

RenĂ© J.V. Bertin <[email protected]> Fri, 11 Feb 2022 11:46:23 +0100
Newsgroups gmane.comp.kde.users.kdevelop
Message-ID <164474516.9XjiuYFNBr@bola>
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.