Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #11414
| From | Edek <edek.pienkowski@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: nested templates and partial specialization |
| Date | 2011-11-12 10:16 +0100 |
| Organization | ATMAN - ATM S.A. |
| Message-ID | <j9ldee$5pq$1@node2.news.atman.pl> (permalink) |
| References | <d4241487-2730-422c-81b4-e23ead8fcc9b@t8g2000yql.googlegroups.com> <8ff5cd3a-72b4-46c9-8d97-23b7ed9b9d82@k10g2000yqn.googlegroups.com> |
On 11/12/2011 08:41 AM, ld wrote: > template<> template<typename T> > void > E<B<T>, D>::doit() const // faulty line Your notation is for template<> template<class T> E<int, float>::doit<T>() (or the other way round, I always forget if the outer template is for the class or member). Try template<class T> void E<B<T>, D>::doit() const I didn't try compiling it... but it is supposed to be a partial specialisation of E. Simpler case: template <class T> void fun<T*> () const ... would match all pointers. You get the idea. Edek
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
nested templates and partial specialization ld <laurent.deniau@gmail.com> - 2011-11-11 15:45 -0800
Re: nested templates and partial specialization ld <laurent.deniau@gmail.com> - 2011-11-11 23:41 -0800
Re: nested templates and partial specialization Edek <edek.pienkowski@gmail.com> - 2011-11-12 10:16 +0100
Re: nested templates and partial specialization ld <laurent.deniau@gmail.com> - 2011-11-12 03:33 -0800
Re: nested templates and partial specialization Edek <edek.pienkowski@gmail.com> - 2011-11-12 13:52 +0100
Re: nested templates and partial specialization ld <laurent.deniau@gmail.com> - 2011-11-12 05:03 -0800
Re: nested templates and partial specialization Edek <edek.pienkowski@gmail.com> - 2011-11-12 14:02 +0100
Re: nested templates and partial specialization ld <laurent.deniau@gmail.com> - 2011-11-12 05:07 -0800
Re: nested templates and partial specialization Edek <edek.pienkowski@gmail.com> - 2011-11-12 16:18 +0100
csiph-web