GCC: 'X is not a template type' error

J

Jeffrey Walton

Hi All,

I can't seem to get my syntax right. I've also tried the following,
and lots of unreadable combinations.

typedef typename C::value_type CIPHER;
typedef typename M::value_type MODE;

MODE < CIPHER > m_cipher;

Any help would be appreciated.

Jeff

template <class C, class M>
class BlockCipherGenerator : public KeyGenerator
{
...

private:
M < C > m_cipher;
};
 
Q

Qi

template<class C, class M>
class BlockCipherGenerator : public KeyGenerator
{
...

private:
M< C> m_cipher;
};


M should template template parameter.
So it should be

template <class C, template<class> class M>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top