This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15935] Defining static [const] member variables of template class
- From: "Rainer dot Bensch at rsd dot rohde-schwarz dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jun 2004 08:23:43 -0000
- Subject: [Bug c++/15935] Defining static [const] member variables of template class
- References: <20040611084936.15935.Rainer.Bensch@rsd.rohde-schwarz.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From Rainer dot Bensch at rsd dot rohde-schwarz dot com 2004-06-17 08:23 -------
>> what you do as a workaround is the correct way of doing it ...
I thought about it but can't agree.
- what is the sense of having a template for defining the variable when an
explicit specialization is always needed?
- how do I get all the hundreds of variables and their names from classes deep
in a complex class hierachy I inherited from foreign sources, e.g. from GNU,
explicitly defined when my_class is also a template? You won't like to impose
such a permanent and silly job on me or my customers, don't you?
>> ... if you do not have weak symbols
I also don't see how weak symbols may solve the problem.
Cheers, R.B.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15935