Skip to content

Red squiggles when viewing multiple components in EnTT #14456

Description

@ghuser404

Environment

  • OS and Version: Windows 11 Pro 25H2
  • VS Code Version: 1.120.0
  • C/C++ Extension Version: 1.32.2
  • CMake Tools Version: 1.23.52
  • EnTT Version: 3.16.0
  • Compiler: Visual Studio 2026

Bug Summary and Steps to Reproduce

Repro project:
test.zip

Bug Summary:
I get red squiggles with specific usage of EnTT (but code still compiles). Just to note, I'm using CMake Tools, I don't know if issue could be in there. I attached a repro project (make sure to update submodules). Below please find self-explaining code:

#include <entt/entt.hpp>

struct Tag1 {};
struct Tag2 {};

int main()
{
    entt::registry registry;

    // No squiggles
    for (const auto entity : registry.view<Tag1>())
    {}

    // Red squiggles (but still compiles)
    // Message: no operator "!=" matches these operands
    for (const auto entity : registry.view<Tag1, Tag2>())
    {}

    return 0;
}

Expected behavior:
No red squiggles

Configuration and Logs

{
    "configurations": [
        {
            "name": "CMake",
            "configurationProvider": "ms-vscode.cmake-tools"
        }
    ],
    "version": 4
}
cmake_minimum_required(VERSION 3.31.5)

project(Test)

add_subdirectory(deps/entt)

add_executable(${PROJECT_NAME} src/main.cpp)
target_link_libraries(${PROJECT_NAME} EnTT::EnTT)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_23)

Other Extensions

No response

Additional context

No response

Metadata

Metadata

Type

Projects

Status
In progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions