Issue 86975
Summary clang-tidy error: no template named 'span' in namespace 'std' [clang-diagnostic-error]
Labels clang-tidy
Assignees
Reporter dizcza
    ```cpp
#include <span>

constexpr auto handLandmarksCount = 20;

struct Landmark
{
   float foo;
};

class LandmarksContainer
{
public:
  std::span<const Landmark, handLandmarksCount> landmarks;
};
```

```
$ clang-tidy-18 src/trigger/trigger.cpp -- -Iinclude

error: no template named 'span' in namespace 'std' [clang-diagnostic-error]
   36 |   std::span<const Landmark, handLandmarksCount> landmarks;
      | ~~~~~^
```

Installed from Ubuntu 22.04 automatic installation script.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to