如何在 vscode 中禁用 C++17 可用的结构化绑定的警告?

pps*_*sgg 4 c++ warnings visual-studio-code

在此输入图像描述

我想禁用这个烦人的警告。如何?

我用的是vscode。

structured bindings only available with -std=c++17 or -std=gnu++17
Run Code Online (Sandbox Code Playgroud)

sam*_*ray 6

根据参考资料,您可以cppStandardc++17您的c_cpp_properties.json

"cppStandard": "c++17",
Run Code Online (Sandbox Code Playgroud)