I have a COM function that should return a SafeArray via a LPSAFEARRAY* out parameter. The function creates the SafeArray using ATL\'s CComSafeArray te
LPSAFEARRAY*
CComSafeArray
I'd guess that where was no intent to allow such a use case. Probably it was not the same developer who wrote CComVariant & CComPtr :)
CComVariant
CComPtr
I believe that CComSafeArray's author considered value semantics as major goal; Attach/Detach might simply be a "bonus" feature.