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

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


Solution 1:[1]

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

"cppStandard": "c++17",

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ramsay