You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Alan Conway <ac...@redhat.com> on 2007/03/05 21:43:12 UTC

C++: Pimpl API

On Mon, 2007-03-05 at 19:46 +0000, Gordon Sim wrote:
> Alan Conway wrote:
> > #A _ BDBStore working with 0-9 trunk.
> 
> I'll take this one as I will be doing some work on the BdbStore to 
> finish off distributed transactions anyway.
> 
> > #B _ Pimpl API for broker/messagestore
> 
> I'll have a go at this as well along with the general cleanup of the 
> message store api and then request further comments from you both.

Excellent.

Attached is a sketch of the Pimpl idiom using shared_ptr, including the
inheritance case. Does it look sensible? Can we make it simpler with
templates (I can't figure out how.) Once we're agreed we can go ahead
with the API cleanup.

Cheers,
Alan.