Boost logo

Boost Users :

Subject: Re: [Boost-users] Dynamically creating new units
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2009-12-25 22:43:34


On Fri, Dec 25, 2009 at 6:25 PM, Ray Burkholder <ray_at_[hidden]> wrote:
> I think this falls under the PIMPL idiom, which is described by Herb Sutter at:
>
> http://www.gotw.ca/publications/mill04.htm
> http://www.gotw.ca/publications/mill05.htm

Quite frankly, I don't see much point in using the PIMPL idiom. I'd
much rather use:

struct widget;
shared_ptr<widget> make_widget();
void frobnicate( widget & );

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net