I am still struggling with GCC - compiling the following built-in assembler code (with -fasm-blocks , which allows you to compile Intel style syntax) disables a strange error for me. Unable to accept the address 'this', which is an rvalue expression ...
MyClass::MyFunction() { _asm { //... mov ebx, this // error: Cannot take the address of 'this', which is an rvalue expression //... mov eax, this // error: Cannot take the address of 'this', which is an rvalue expression //... }; }
Why can I store pointers to different objects in registries, but cannot use a pointer to an instance of MyClass ?
source share