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
<cppyy.gbl.A object at 0x5d77cc252e40 held by std::unique_ptr<A,default_delete<A> > at 0x5d77cc2432e0>
42
<cppyy.gbl.A object at 0x(nil) held by std::unique_ptr<A,default_delete<A> > at 0x5d77cc2432e0>
<cppyy.gbl.A object at 0x(nil) held by std::unique_ptr<A,default_delete<A> > at 0x5d77cc2432e0>
Traceback (most recent call last):
File "/home/rembserj/spaces/master/root/src/root/jonas.py", line 32, in <module>
print(x.a)
^^^
ReferenceError: attempt to access a null-pointer
The new x should not be a nullptr anymore, but a reference to the object that the Consumer points to internally.
Reproducer:
Output:
<cppyy.gbl.A object at 0x5d77cc252e40 held by std::unique_ptr<A,default_delete<A> > at 0x5d77cc2432e0> 42 <cppyy.gbl.A object at 0x(nil) held by std::unique_ptr<A,default_delete<A> > at 0x5d77cc2432e0> <cppyy.gbl.A object at 0x(nil) held by std::unique_ptr<A,default_delete<A> > at 0x5d77cc2432e0> Traceback (most recent call last): File "/home/rembserj/spaces/master/root/src/root/jonas.py", line 32, in <module> print(x.a) ^^^ ReferenceError: attempt to access a null-pointer
The new x should not be a
nullptr
anymore, but a reference to the object that theConsumer
points to internally.Thanks to @hahnjo for finding this problem!
The text was updated successfully, but these errors were encountered: