string_view unknown type
已完成
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
请先登录再写评论。
Are you using c++ 17 ? If not, try to set
set(CMAKE_CXX_STANDARD 17)
in CMakeLists.txt