21
我無法聲明模板類。我嘗試了一些不可讀和非感性的組合。'X不是模板'錯誤
template <class C, class M >
class BlockCipherGenerator : public KeyGenerator
{
...
private:
M <C> m_cipher;
};
而且
template <class C, class M >
class BlockCipherGenerator : public KeyGenerator
{
typedef typename C::value_type CIPHER;
typedef typename M::value_type MODE;
private:
MODE <CIPHER> m_cipher;
};
非常感謝!我想我確實擁有它,但我讓CPP文件中的錯誤讓我分心。 – jww
@noloader:完全沒問題。 :) –