简体   繁体   中英

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

在此处输入图像描述

I want to disable this annoying warning. how?

I use 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",

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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