c++: why the restriction on offsetof() for non-standard layout objects, or how to recover parent from pointer-to-member

前端 未结 0 376
忘掉有多难
忘掉有多难 2021-01-28 23:14

I have a situation where I have a pointer to a data member, and from that, wish to recover the address of the containing object (implementing \'properties\' class for an object)

相关标签:
回答
  • 消灭零回复
提交回复
热议问题