In Microsoft COM, or more specifically, ATL, the smart pointer
class is CComPtr. This class has the same issues with std::vectors as
the mozilla one.

ATL provides support for using CComPtrs within STL containers
via the CAdapt class.

The CAdapt class is quite simple. You could easily implement your
own (unless of course such a beast already exists in the Mozilla
tree).

Please refer to the following MSDN link for more information:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/htm
l/vcrefcadapt.asp

Hope that helps.


"Tobias Oberstein" <[EMAIL PROTECTED]> wrote in message
a3hnf0$[EMAIL PROTECTED]">news:a3hnf0$[EMAIL PROTECTED]...
> > You might want to use nsSupportsArray instead (in xpcom/ds)
>
> i'm aware of this .. somewhere i have read the opinion that this interface
> is not that well designed ([no-xpcom] stuff). this is also my opinion
right
> now.
>
> currently, only @mozilla.org/supports-array;1 implements this ifc. maybe i
> will
> use the component through nsICollection, which is much cleaner and a base
to
> nsISupports. but only across ifcs. i will strive to avoid using it
> internally to
> implement new components though ;)
>
> Toby.
>
>
>
>
>



Reply via email to