-
2 votesanswersviews
当我聚合初始化数组而gcc没有聚合时,Clang警告我
当我用CLANG编译以下代码时: #include <iostream> #include <array> #include <algorithm> #include <functional> int main() { std::array<int, 2> a = {1, 2}; std::array<int, 2>... -
5 votesanswersviews
使用std :: array创建树
底部的代码生成以下编译时错误 . 如果我使用 std::vector<Node> 或 std::array<unique_ptr<Node>, 3> ,错误就会消失 . 有人可以解释一下这是什么意思吗? 在main.cpp中包含的文件中:1:0:/ usr / include / c /4.9/array:在'struct std :: array'的实例化中...