在 Visual Studio '12 中出现以下编译错误
error C3867: 'std::vector<_Ty>::at': function call missing argument list; use '&std::vector<_Ty>::at' to create a pointer to member line 39
代码
Vector2dVector mVertices;
/// other code
for (int pointIndex = 0; pointIndex < points.size(); pointIndex++) {
mVertices.push_back(Vector2d(pointIndex * 2.0f, pointIndex * 3.0f ));
}
int size = mVertices.size();
CCPoint *pointArr = new CCPoint[size];
for(int i = 0; i < size; i++) {
Vector2d vec2 = mVertices.at[i]; //Line 39
//pointArr[i].x = vec2->GetX();
//pointArr[i].y = vec2->GetY();
}