Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #8527

Re: GCC: 'X is not a template type' error

From Qi <no@no.com>
Newsgroups comp.lang.c++
Subject Re: GCC: 'X is not a template type' error
Date 2011-08-07 10:15 +0800
Organization Aioe.org NNTP Server
Message-ID <j1kslt$eq8$1@speranza.aioe.org> (permalink)
References <5a1c143f-fa1d-4731-9908-8cd28cfe88a2@d32g2000yqa.googlegroups.com>

Show all headers | View raw


On 2011-8-7 9:41, Jeffrey Walton wrote:
>    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>


-- 
WQ

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

GCC: 'X is not a template type' error Jeffrey Walton <noloader@gmail.com> - 2011-08-06 18:41 -0700
  Re: GCC: 'X is not a template type' error Qi <no@no.com> - 2011-08-07 10:15 +0800
    Re: GCC: 'X is not a template type' error Miles Bader <miles@gnu.org> - 2011-08-08 17:38 +0900

csiph-web