How can you assign a value to the pointer 'this' in C++

后端 未结 6 2167
北荒
北荒 2020-12-08 21:03

In a function, how to you assign this a new value?

6条回答
  •  庸人自扰
    2020-12-08 21:51

    You can't. If you feel the need to do this perhaps you should be writing a static method taking a class pointer as it's first parameter.

提交回复
热议问题