C++17 template argument deduction and structured binding type deduction #2101
Labels
bug
fixed
Check the Milestone for the release in which the fix is or will be available.
Language Service
parser
Milestone
Type: LanguageService
I encountered two intellisense issues that seem to be in conflict with the C++17 standards:
The first one is that the C++ extension considers class template argument deduction an error (http://en.cppreference.com/w/cpp/language/class_template_argument_deduction) with red squiggles. Below is the screenshot:
This code compiles in major compilers with c++17 standards. I'm pretty sure I have the c++17 standard on for intellisense, as it is on by default in the cpp properties file, and structured bindings work.
The second issue is the type deduction in the auto [..., ...] structured bindings. Below is the screenshot:
Variable a here should be of type int instead of int&. I checked with gcc and clang by tricking them to print out the type through template compiler errors.
The text was updated successfully, but these errors were encountered: