0

我有编译和工作的 platformio 项目。使用 emacs + lsp-mode + clang。我得到的一个奇怪的错误是这样的结构:

#include <queue>
#include <vector>

struct test_v{
    std::vector<int> buff;
};

在线上#include <queue>

in included file: no type named 'pointer' in 'std::allocator_traits<std::allocator<int>>'

在buff定义线上

In template: no member named 'value' in 'std::is_void<int>'

文件.hpp以防万一

4

1 回答 1

0

配置不完整且缺少定义所需 std:: 部分的标头

于 2022-02-12T14:44:08.653 回答