Convert “this” pointer to string

后端 未结 5 1768
夕颜
夕颜 2020-12-14 10:08

In a system where registered objects must have unique names, I want to use/include the object\'s this pointer in the name. I want the simplest way to create

5条回答
  •  一整个雨季
    2020-12-14 10:45

    You could use ostringstream the this pointer's address and put that ostringstream's value as string?

提交回复
热议问题