🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2145

Re: Global object initialization again

#2145
From: Kalyan Kolachala
Date: Sat, 07 Oct 1995 07:39
17 lines
1111 bytes
A related and more intractable problem is that of the order of
initialization of statics in template classes. There is simply no
solution as there is no way of knowing what type the template class
will be instantiated with.

The only workaround I know of is not to use static data members in
template and instead put the statics within a member function.

I was wondering if there is any solution for this in the proposed
template compilation model.

Thanks,
Kalyan
---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <4544tn$gca@ns.taligent.com>
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
References: <AFQDKTmKgB@qsar.chem.msu.su>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
Date: 07 Oct 95 07:39:35 GMT
Approved: fjh@cs.mu.oz.au
From: Kalyan Kolachala <kalyan@taligent.com>
Newsgroups: comp.std.c++
Subject: Re: Global object initialization again
X-Original-Date: 6 Oct 1995 20:52:07 GMT
Organization: Taligent, Inc.
Message-ID: <4544tn$gca@ns.taligent.com>
References: <AFQDKTmKgB@qsar.chem.msu.su>
X-Mailer: Mozilla 1.1N (X11; I; AIX 1)