Topic: Defect Report: Dynamic initialization of a static data member of a
Author: "John Hickin" <hickin@nortelnetworks.com>
Date: Thu, 8 Feb 2001 15:16:16 GMT Raw View
Andrei,
Your proposed solution seems to be very carefully worded and, in
consequence, I can't understand it. No doubt there are situations that
you seek to avoid. I'm just wondering if there are situations which may
result in trouble.
Specifically I have in mind cases where the initialization order is
important but that we have two templates and two translation units,
where the same two template static member specializations are
initialized, but in a different order, i.e., A-B vs B-A. The can of
worms that I believe this creates is interesting [1].
Regards, John.
[1] Not directly relevant to an ANSI standard but of interest to those
who target OS that support multi-threading, is the possibility of AB-BA
deadlocks.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]
[ Note that the FAQ URL has changed! Please update your bookmarks. ]