我想觀看以下變量的XCode 6:無法創建觀察點
vector<Vec3f> lines[2];
XCode中
(其中Vec3f
是一個數據類型的OpenCV,3個浮點數的向量)。 但在變量視圖,當我用鼠標右鍵單擊該變量並選擇Watch "lines"
,我被在通過的XCode喊道:
error: Watchpoint creation failed (addr=0x16fd92d48, size=48, variable expression='lines'). error: watch size of 48 is not supported
這似乎與vector<T>
類型的其他變量的情況發生爲好,但只有當它是一個局部變量。我可以看到作爲方法參數傳入的vector
就好了。
double computeReprojectionError(vector<Point2f>& imgpts1, vector<Point2f>& imgpts2, Mat& inlier_mask, const Mat& F)
{
//^I can watch this guy
vector<Vec3f> lines[2]; // <- I cannot watch this guy (size 48)
vector<Point2f> imgpts1_copy(npt), // <- I cannot watch this guy (size 24)
imgpts2_copy(npt);
...
我GOOGLE錯誤沒有成功。有人可以闡明此事嗎?