MicrosoftDocs / winrt-related

WinRT related reference content for developing Microsoft Universal Windows Platform (UWP) apps
Creative Commons Attribution 4.0 International
76 stars 91 forks source link

com_ptr::com_ptr constructor has an overload that takes a `T*` pointer, but that's not listed in the documentation. #357

Closed TheJCAB closed 1 year ago

TheJCAB commented 1 year ago

It's important to be complete.

The missing constructor is implicit and AddRef's the given pointer. All of this is important to include in the documentation (besides its existence, of course).


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

stevewhims commented 1 year ago

Thanks, I've published an update to the topic now.

-Steve