Robot 0x7fff6f1c0fe0
in CallbackWrapper 9 0x7fff6f1c0fe0
in callback 9 0x7fff6f1c0fe0
Robot2 0x7fff6f1c0fe0
in CallbackWrapper 9 0x7fff6f1c0fe0
in callback 9 0x7fff6f1c0fe0
Robot3 0x7fff6f1c0fe0
in CallbackWrapper 9 0x7fff6f1c0fe0
in callback 9 0x7fff6f1c0fe0
Robot
<cppyy.gbl.Robot object at 0x558e798b62e0>
in CallbackWrapper 5 0x558e798b62e0
in handle <cppyy.gbl.Robot object at 0x558e798b62e0>
in handle 5
Robot2
<cppyy.gbl.MetaRobot object at 0x558e7a08ce50>
in CallbackWrapper 5 0x558e7a08ce50
in handle <cppyy.gbl.MetaRobot object at 0x558e7a08ce50>
in handle 5
Robot3
<cppyy.gbl.MetaWrapper<Robot> object at 0x558e7a394800>
in CallbackWrapper 5 0x558e7a394800
in handle <cppyy.gbl.MetaWrapper<Robot>* object at 0x(nil)>
---------------------------------------------------------------------------
ReferenceError Traceback (most recent call last)
Cell In[2], line 35
33 wrapper = cpp.CallbackWrapper[cpp.Robot3]()
34 wrapper.func = handle
---> 35 wrapper.call(rs)
ReferenceError: void CallbackWrapper<MetaWrapper<Robot>>::call(const MetaWrapper<Robot>& val) =>
ReferenceError: attempt to access a null-pointer
Here's the code to reproduce:
Calling
cpp.cpp_test()
outputs:However, when invoking this though cppyy:
Outputs: