 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Nils Guest
|
Posted: Sun Mar 07, 2004 2:45 pm Post subject: template classes and static attributes |
|
|
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
|
|
| Back to top |
|
 |
Victor Bazarov Guest
|
Posted: Sun Mar 07, 2004 2:53 pm Post subject: Re: template classes and static attributes |
|
|
"Nils" <slimb (AT) web (DOT) de> wrote...
| Quote: | I have a template class like
template
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?
|
This is, what, the fourth or fifth time you ask the same question. Do you
really think that something has changed since you received your answers?
Please reread your post. What do you mean by "the same in every class A"?
Is it the same type? Is it the same object (that has the same address)?
What is "confition" and how can it be "performed"?
|
|
| Back to top |
|
 |
Clark Cox Guest
|
Posted: Sun Mar 07, 2004 3:33 pm Post subject: Re: template classes and static attributes |
|
|
In article <c2fcin$23ce$1 (AT) ariadne (DOT) rz.tu-clausthal.de>,
"Nils" <slimb (AT) web (DOT) de> wrote:
| Quote: | Hi,
I have a template class like
template
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?
|
Did you forget the multitude of answers that you received the last
two times you asked this question?
|
|
| Back to top |
|
 |
Nils Guest
|
Posted: Sun Mar 07, 2004 3:51 pm Post subject: Re: template classes and static attributes |
|
|
Hi,
yes I am sorry, but the last time I had some computer trouble. After
everything worked well again and returned to the group I can't locate my
answers....
Is it possible to see them again? My newsreader does only show the last time
now....
Thank you for your help
"Nils" <slimb (AT) web (DOT) de> schrieb im Newsbeitrag
news:c2fcin$23ce$1 (AT) ariadne (DOT) rz.tu-clausthal.de...
| Quote: | Hi,
I have a template class like
template
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
|
|
|
| Back to top |
|
 |
Victor Bazarov Guest
|
Posted: Sun Mar 07, 2004 3:59 pm Post subject: Re: template classes and static attributes |
|
|
"Nils" <slimb (AT) web (DOT) de> wrote...
| Quote: | Hi,
yes I am sorry, but the last time I had some computer trouble. After
everything worked well again and returned to the group I can't locate my
answers....
Is it possible to see them again? My newsreader does only show the last
time
now....
|
Go to http://groups.google.com/advanced_group_search?hl=en and
enter your address into the "Author" field. Then press 'Enter'.
|
|
| Back to top |
|
 |
Nils Guest
|
Posted: Sun Mar 07, 2004 4:08 pm Post subject: Re: template classes and static attributes |
|
|
Thats a pretty cool tool...
Thank you, hope will never bothering you with questions already answered
again.... :=)
Nils
"Victor Bazarov" <v.Abazarov (AT) comAcast (DOT) net> schrieb im Newsbeitrag
news:sFH2c.80071$PR3.1123841 (AT) attbi_s03 (DOT) ..
| Quote: | "Nils" <slimb (AT) web (DOT) de> wrote...
Hi,
yes I am sorry, but the last time I had some computer trouble. After
everything worked well again and returned to the group I can't locate my
answers....
Is it possible to see them again? My newsreader does only show the last
time
now....
Go to http://groups.google.com/advanced_group_search?hl=en and
enter your address into the "Author" field. Then press 'Enter'.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|