string_view unknown type
Completed
Hi, does CLion recognise the string_view class? I can't get mine to do so.
I'm working on uni practice exercises, and the solutions implementing string_view don't work.
I am including #include <string_view> in the header, but CLion is still highlighting the string_view class in red.
Thanks
Please sign in to leave a comment.
Are you using c++ 17 ? If not, try to set
set(CMAKE_CXX_STANDARD 17)
in CMakeLists.txt