[C++-sig] global variable
Stefan Fleiter
sf.lists at web.de
Wed Jul 16 18:15:18 CEST 2003
Hi,
I am using pyste of boost.python to wrap a library.
This library has an init function 'init' which
allocates an object and sets a global pointer 'ptr' to
it. This function can only be called once, so 'ptr' can
or should never be changed.
1. How can I access 'ptr' or '*ptr'?
2. I have a function returning this 'ptr', what is the right
call-Policy?
Many thanks,
Stefan
More information about the Cplusplus-sig
mailing list