This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c++/15935] Defining static [const] member variables of template class


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


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