[C++-sig] Call Policy for Singleton

ZaeX zaexage at gmail.com
Fri Feb 13 16:19:31 CET 2009

When the Singleton class is linked, the DLL will get the
Singleton::_instance as an unique static variable.
Well, In my last attempt, it appeared to be like that.

On Fri, Feb 13, 2009 at 5:33 PM, John Reid <j.reid at mail.cryst.bbk.ac.uk>wrote:

> ZaeX wrote:
>>  And in my opinion, you'd better be careful if you expect that the c++
>> code and python code are using the same singleton instance.
>> Because there're two Singleton::_instance if you export the Singleton
>> class to Python. one at c++ side, the other at python side.
> I don't think this is true. What makes you think this?
> John.
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig

Time is mana, we must hurry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20090213/4c831e56/attachment.htm>

More information about the Cplusplus-sig mailing list