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

Viewed 114

enter image description here

I want to disable this annoying warning. how?

I use vscode.

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

According to the reference, you could set the cppStandard to c++17 in your c_cpp_properties.json:

"cppStandard": "c++17",
Related