[C++-sig] how to access live c++ object?

Ñî±ù[Ô´´úÂëÖ®¹â] yangbing at kingsoft.com
Mon Mar 14 07:30:16 CET 2005


This is my class
class CT
{
public:
 CT() {};
 ~CT() {};
 int GetNum( void )   { return num; }
 void SetNum( int n )  { num = n; }

private:
 int num;
};

static CT ct;

CT & getCT( void )
{
 return ct;
}

I want to access ct object from boost.python, thanks for your advice.






More information about the Cplusplus-sig mailing list