operator&
for CComPtr
is overloaded, which makes my generically written code crash.
I am wondering if there is any way to force a variable into returning the address of it's object?
The solution is hideous:
reinterpret_cast<CComPtr*>(&reinterpret_cast<char&>(ptr))