This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: classes and templates correct order.



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?)
------------------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]