سؤال

Windows Runtime introduced new ref objects that use the ^ notation which is basically a smart pointer according to the docs. I'm trying to output some debugging information and I'd like to print the memory address of one of these C++/CX ref objects. How can I do that?

هل كانت مفيدة؟

المحلول

The answer was given by Hans Passant in a comment, it is: Just cast to void* to get a raw pointer value.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top