Boost logo

Boost :

Subject: Re: [boost] boost::directx?
From: Christian Schladetsch (christian.schladetsch_at_[hidden])
Date: 2009-06-08 02:14:43

> Out of curiosity what was the motivation for deriving from shared_ptr
> instead of using intrusive_ptr?

shared_ptr simply fitted the bill. Your com_ptr uses IUnkown::AddRef() and
IUnkown::Release(), which is arguably slower than using shared_ptr's own
reference counting scheme, which mine does.

However, I like the ability to construct objects in-place rather than having
to first create a 'raw' COM object, then assigning it to a com_ptr<T>


Boost list run by bdawes at, gregod at, cpdaniel at, john at