I'm having an issue with Boost Python & C++. I have a C++ class Entity
ex****ted to Python that includes private static data, which is
basically an array of strings. My class contains a public static
function Dump(), which is also ex****ted to Python using Boost Python.
My application initialises the string array at startup and I've
verified in the debugger that this does happen.
The fun happens when I call the static function Dump from Python:
Entity.Dump()
The function executes ok, but the string array is empty. It's as
though the private static data has gone out of scope or been "lost". I
just read and learned that static data is maintained as a "global
variable". Can this happen in C++? Can static data go out of scope?
Thanks
--
[ See http://www.gotw.ca/resources/clcm.htm
for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]