I have a virtual class in my code:
namespace X
{
class Y
{
public:
/* CTOR */
Y() {};
/* DTOR */
virtual ~Y() {};
/* Initialization */
virtual bool Init() = 0;
virtual int Foo(void** ptr, size_t size) = 0;
virtual int Foo2(void *ptr) = 0;
private:
};
}
I need to define the variable in python using cppyy:
std::shared_ptr<X::Y> tempValue = nullptr;
I have tried
self.allocMgr = cppyy.gbl.MEMORY_ALLOCATOR.Allocator.__smartptr__()
It didn't work.