8 Jan
2005
8 Jan
'05
4:55 p.m.
Dear Richy, On Fri, 7 Jan 2005, Richard B. Kreckel wrote:
Theoretically, by making sure the library_init ctor constructs it as well. Maybe using placement new or some such trick.
Yes, that might be made to work. I hadn't thought about placement new. Another thing: I think it is wrong that count is a static int of library_init. This is given a value in utils.cpp, which may be after the point that library_init::library_init() does its work. Shouldn't it be a static of the constructor library_init::library_init()? The destructor isn't doing much anyway. Here's a patch. Best wishes, Chris