【发布时间】:2018-03-26 21:45:12
【问题描述】:
我正在尝试制作 DataEntry 对象的向量,这些对象的 operator= 已禁用:
using Row = vector<DataEntry>;
class DataTable {
public:
vector<Row> data;
};
这会导致错误
在成员函数 'std::__1::vector<:__1::vector std::__1::allocator> >, std::__1::allocator<:__1:: std::__1::allocator> > > >::operator=' 在这里请求 类数据表 {有没有办法解决这个问题并在不意外使用operator= 的情况下制作矢量?
【问题讨论】: