In PPx (CW 9.1), I have a class, to manage multiprocessing, instantiated
once as a static global object, theCMP.
This class has a static member
static vector<bool> Waiting;
The class ctor is automatically called prior to main() and, at that
time, Waiting is resized to the number of active processors. Debugging
However, the first time theCMP is subsequently used the size of Waiting
has decreased to zero, having been cleared (somehow automatically).
Debugging shows the deleter being called deep within library code. [I
do not call it.]
Note, all of the static members of this class that are scalars retain
their correct values -- e.g., numProcessors. It is just this vector
that is cleared.
Is this the way the STL is supposed to behave or is this some kind of bug?