Product and Version [VS/VSCode]: VSCode, 1.82.1
OS Version [Linux]: Ubuntu 22.04
IntelliCode Extension Version: 1.2.30
Target Platform or Language [e.g. Node.js]: C++, GCC 12.1.0 x86_64-linux-gnu
c_cpp_properties.json
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**"
],
"compilerPath": "/usr/bin/g++-12",
"cStandard": "c17",
"cppStandard": "c++23",
"intelliSenseMode": "linux-gcc-x64",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
}
Steps to Reproduce / Scenario:
- ms-vscode.cmake-tools
- compile C++ project with CMake (VERSION 3.22.1)
T& operator[](const std::string& str, std::size_t sz)
{
//
}
Intellicode is marking operator[] function and says "too many parameters for this operator function C/C++(344)"
When I compile the code, the compilations end without any problem and the code works.
By C++23 standards the array subscript operator can now take more than one subscript