我有一个结构缓存向量。实现移动构造函数的缓存。每当我试图在这个向量上迭代并在特定条件下删除一个元素时,它都无法编译。struct Cache { : serviceName(std::move(other.serviceNamevectorCaches.erase(iter); //compiler error here
} e
我需要访问一个向量指针元素,我有下面的代码用于我的动画结构(在这里简化,不必要的变量被删除): int w,h;struct animstructanimstruct test; // in this struct we save the pointer to those frames./ error C2039: 'w' : is not a