Now, I got this error when building using CMake:
error C2039: ‘string_view’: is not a member of ‘std’
string_view is a new feature of C++17 which must be enabled for CMake.
You can use the following command to configure your project to enable C++17 support:
cmake src -DCMAKE_CXX_STANDARD=17
Alternatively, you can set the CMAKE_CXX_STANDARD variable in CMakeLists.txt:
set(CMAKE_CXX_STANDARD 17)
You can also enable C++17 support for CMake by adding the following line to CMakeLists.txt:
target_compile_features(projectname PRIVATE cxx_std_17)