[問題] BCB6: '> >' for nested templates
#include <vector>
using namespace std;
.
.
.
vector<vector<int>> vPixel(jpImg->Width,vector<int>(jpImg->Width));
會錯,
[C++ Warning] Unit1.cpp(46): W8049 Use '> >' for nested templates instead of
'>>'
[C++ Error] Unit1.cpp(46): E2268 Call to undefined function 'vPixel'
vector<vector<int> > vPixel(jpImg->Width,vector<int>(jpImg->Width));
^^
若加一格空白,編譯就過了!
超怪的!
這是IDE的bug嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.122.165.23
推
09/19 10:34, , 1F
09/19 10:34, 1F
→
09/19 10:35, , 2F
09/19 10:35, 2F
→
09/19 10:44, , 3F
09/19 10:44, 3F
推
09/19 10:45, , 4F
09/19 10:45, 4F
→
09/19 10:45, , 5F
09/19 10:45, 5F
→
09/19 10:46, , 6F
09/19 10:46, 6F
→
09/19 11:17, , 7F
09/19 11:17, 7F
→
09/19 12:24, , 8F
09/19 12:24, 8F
→
09/19 12:36, , 9F
09/19 12:36, 9F
推
09/19 13:49, , 10F
09/19 13:49, 10F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章