3

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
rioV8
  • 24,506
  • 3
  • 32
  • 49
ppsgg
  • 51
  • 4
  • This may answer your question: [How to enable C++17 support in VSCode C++ Extension](https://stackoverflow.com/questions/49397233/how-to-enable-c17-support-in-vscode-c-extension) – rawrex May 11 '22 at 05:05

1 Answers1

5

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

"cppStandard": "c++17",
ramsay
  • 3,197
  • 2
  • 14
  • 13