Re: template class and static variables
From: Mohamed Imam (Mohamed.Imam_at_egdsc.microsoft.com)
Date: 03/07/04
- Next message: Mohamed Imam: "Re: Modify Registry"
- Previous message: Carl Daniel [VC++ MVP]: "Re: VC++ vs C#"
- In reply to: Nils: "template class and static variables"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 7 Mar 2004 17:47:23 +0200
Hi,
I think you can define a base class which has a static member. Then let
class A inherits from it. This is your idea and i think it is a good idea.
Thanks,
Mohamed Imam
Microsoft GTSC Developer support for Middle East
http://www.microsoft.com/middleeast/developers/meadsc/
"Nils" <slim@web.de> wrote in message
news:uNfh$8EBEHA.2348@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> I have a template class like
>
> template <class T>
> class A
> {
>
> };
>
> and want a static Attribute, what is the same in every class A, doesn't
> matter, what kind of template T.
> How can I do it best?
> If I derive class A from the static class I want as Attribut, does it
> perform the confition?
>
> Tank you
>
>
- Next message: Mohamed Imam: "Re: Modify Registry"
- Previous message: Carl Daniel [VC++ MVP]: "Re: VC++ vs C#"
- In reply to: Nils: "template class and static variables"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|