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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -