Skip to content

Error Squiggles showing for valid C++ code using std::bitset::operator[] #1510

@1g0rb0hm

Description

@1g0rb0hm
  • OS: OSX 10.13.2
  • VS Code: 1.19.3
  • C/C++ extension version: 0.14.6

Error Squiggles are shown for the following sample code (see screen snap further below):

#include <bitset>

int main(int argc, char const *argv[]) {
  // see http://en.cppreference.com/w/cpp/utility/bitset/operator_at
  std::bitset<8> foobit(42);
  if (foobit[0]) {
    foobit[1] = false;
  }
  return 0;
}

Unless I am missing something the code seems to be correct and should not present any issues, certainly no errors.

vscode error squiggles

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions