c++ - Implicit this parameter in GDB -
i'm using clion. how see value of this
parameter in gdb? isn't in "variables" section now. i've tried print using "evaluate expression", didn't me, printed {void (my_class * const)} 0x7fff5fbff298
.
also, can explain why happening?
well, technically, this
pointer object owns it, should regular pointer address points class. it's nothing special.
now, once dereference pointer, referring actual object. should try referencing *this
when want print out actual object.
Comments
Post a Comment