[問題] parameter 是 template function pointer
不好意思請問一下 我想要做到的功能是
某一個函式中的其中一個參數是 template function pointer
template <class T>
class Transmitter{
public:
Transmitter(T* source);
template <class T>
//error void addInvoction(string command,void T::*(string) method);
}
在上面那行會compile不過 但我卻不知如何改
template又不能進行 typedef
請問這個有解嗎???
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.36.50.5
→
08/06 19:22, , 1F
08/06 19:22, 1F
→
08/06 19:47, , 2F
08/06 19:47, 2F
→
08/06 19:49, , 3F
08/06 19:49, 3F
→
08/06 19:50, , 4F
08/06 19:50, 4F
→
08/06 19:51, , 5F
08/06 19:51, 5F
→
08/06 19:53, , 6F
08/06 19:53, 6F
討論串 (同標題文章)
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章