-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
com_ptr::addressof
method?
#1423
Comments
I would argue against this because:
I'm not opposed to the idea, but it would need a different name. |
Since every variable is a length one array maybe Feel free to close if this is more bikeshedding than it is worth. 1-1 functionality with |
Something like addressof() would work better - and it's also the name used by wil. Have you considered using wil for your com_ptr? Also I will point out that |
I believe the WIL version has a lot more bells and whistles. |
Most D3D APIs take a
T *const *ppT
parameter (i.e. an array of pointers). WithWRL::ComPtr
you could useGetAddressOf
to get the argument to parse. C++/WinRT'scom_ptr::put
releases its reference before passing you a pointer to what it owns.Which is safe, but this means you have to do the following dance when parsing only one pointer
which is unnecessarily verbose, as you could provide
The text was updated successfully, but these errors were encountered: