holding references, _and_ use nsCOMPtr for those references problem: nsCOMPtr make the address-of-op operator& private for reasons of some leaks related to accidential/misused casts. at the same time, the C++ language standard requires a public operator&
goal: non-intrusive safe solution i've had some conversation on the libstdc++-mailing-list regarding this issue, which is here: http://www.brainthat.com/xpcom/stl_nscomptr_postings.txt .. and got an simple adapter class here: http://www.brainthat.com/cvspublic/cvsweb/bt/btcomponents/btbase/nsSTLCOMPtr.h WARNING: i'm absolutely not sure if this is a correct solution. it's maybe more experimental /discussable. Tobias
