简体   繁体   English

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

[英]How to disable warning for structured bindings available with C++17 in vscode?

在此处输入图像描述

I want to disable this annoying warning.我想禁用这个烦人的警告。 how?如何?

I use vscode.我用的是vscode。

structured bindings only available with -std=c++17 or -std=gnu++17

According to the reference , you could set the cppStandard to c++17 in your c_cpp_properties.json :根据参考资料,您可以在cppStandard c++17设置为c_cpp_properties.json

"cppStandard": "c++17",

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM