我在声明模板类时遇到问题.我尝试了一些不易读和非感性的组合.
template <class C, class M >
class BlockCipherGenerator : public KeyGenerator
{
...
private:
M < C > m_cipher;
};
Run Code Online (Sandbox Code Playgroud)
和
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;
};
Run Code Online (Sandbox Code Playgroud)