This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA 01/14] Introduce py-ref.h


>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> These two methods stale-reference / deallocate during self-assignments:
Jan>   gdbpyref = gdbpyref;
Jan>   gdbpyref = std::move (gdbpyref);

Jan> std::unique_ptr<> and std::shared_ptr<> behave correctly in such cases.

I'll fix them.
Or maybe remove them, I can't remember if I ended up needing these.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]