Shouldn't this not compile? The usual pattern with ref-counted
classes is that the destructor is protected/private.
> Instead of using LeakySingletonTraits to skirt around this problem, does it
> makes sense to add a new trait to base/memory/singleton.h that calls
> AddRef/Release()?
> Background: the class in question is an IPC message filter which derives
> from IPC::ChannelProxy::MessageFilter so removing ref-counting doesn't seem
> to be an option.
Ref-counted base classes make me sad, but I guess making a
RefCountedSingletonTraits isn't so bad.
Come to think of it, singletons make me sad too. :( Have you explored
alternatives?
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev