討論串[問題] 無法推導出的 function template ?
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 21→)留言21則,0人參與, 最新作者applecool時間13年前 (2013/03/20 21:31), 編輯資訊
0
0
0
內容預覽:
不好意思好像推文很難說清楚. template<int N>. int test(int x1, ...) { return N; }. 如果我指定了 N 變成. template<>. int test<3>(int x1, ...) { return 0; }. 是可以的. 可是. templa
(還有630個字)

推噓1(1推 0噓 12→)留言13則,0人參與, 最新作者applecool (noOneKnows)時間13年前 (2013/03/20 00:08), 編輯資訊
0
0
0
內容預覽:
開發平台(Platform): (Ex: VC++, GCC, Linux, ...). VC++ 6.0. 問題(Question):. 請問如果是. template<size_t N>. int test(int x1, ...) {. 想告訴有 N 個 input, x1, ..., xN.
首頁
上一頁
1
下一頁
尾頁