Skip to content

IntelliSense between c++98 and c++03 is different #5225

@ghuser404

Description

@ghuser404

While testing #5220, I noticed that if I specify "cppStandard": "c++98" in c_cpp_properties.json, I do not get red squiggles for code below, but if I specify "cppStandard": "c++03", then I do. That is without CMake Tools extension.

I also do get red squiggles when I use CMake Tools extension as configuration provider "configurationProvider": "ms-vscode.cmake-tools" and having target_compile_features(test PRIVATE cxx_std_98) in CMakeLists.txt.

The error is error: '>>' should be '> >' within a nested template argument list.

#include <vector>

int main()
{
    std::vector<std::vector<int>> v;
    return 0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.quick fix

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions