You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<class cppyy.gbl.ClassB at 0x5e1ddf85ed20>
Traceback (most recent call last):
File "/home/rembserj/repro.py", line 30, in <module>
out_2.helloB()
^^^^^^^^^^^^
AttributeError: 'ClassA' object has no attribute 'helloB'
The text was updated successfully, but these errors were encountered:
It would greatly help memory safety if ROOT could use more smart pointers in its interfaces.
However, the automatic downcasting of returned values is only working for raw pointers. It should work for smart pointers as well.
For example, right now this doesn't work:
Output:
<class cppyy.gbl.ClassB at 0x5e1ddf85ed20> Traceback (most recent call last): File "/home/rembserj/repro.py", line 30, in <module> out_2.helloB() ^^^^^^^^^^^^ AttributeError: 'ClassA' object has no attribute 'helloB'
The text was updated successfully, but these errors were encountered: