[Bug c++/15935] Defining static [const] member variables of template class
Rainer dot Bensch at rsd dot rohde-schwarz dot com
gcc-bugzilla@gcc.gnu.org
Thu Jun 17 08:23:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list