This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: classes and templates correct order.
- To: Ingo Krabbe <i dot krabbe at dokom dot net>
- Subject: Re: classes and templates correct order.
- From: Roberto Diaz <rdiazmartin at vivaldi dot dhis dot org>
- Date: Sun, 10 Jun 2001 15:46:27 +0200 (MEST)
- cc: Roberto Diaz <rdiazmartin at vivaldi dot net dot dhis dot org>, gcc-help at gcc dot gnu dot org
Yes I know a template is not a class, but the behaviour of the compiler
should be similar.. your solution becames my class a template.. and I dont
want to have too much templates.
Thank you!
> > class A {
> > B<int> a;
> > ... etc ..
> > };
> >
> > template <class T > B {
> > ...etc..
> > };
> It is because of B<int> is a class and template <class T> B is a
> template and a template is no class ! You can define
Regards
Roberto
------------------------------------------------------------------------
Roberto Diaz <rdiazmartin@vivaldi.dhis.org>
http://vivaldi.dhis.org
Powered by GNU running on a Linux kernel.
Powered by Debian (The real wonder)
Concerto Grosso Op. 3/8 A minor
Antonio Vivaldi (so... do you need beautiful words?)
------------------------------------------------------------------------