Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Windows 运行时引入了新的 ref 对象,这些对象使用^根据文档基本上是智能指针的符号。我正在尝试输出一些调试信息,并且我想打印这些 C++/CX 引用对象之一的内存地址。我怎样才能做到这一点?
^
Hans Passant 在评论中给出了答案,它是:只需转换为void*即可获得原始指针值。
void*