|
Boost Users : |
Subject: Re: [Boost-users] Dynamically creating new units
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2009-12-25 22:48:41
On Fri, Dec 25, 2009 at 8:43 PM, Emil Dotchevski
<emildotchevski_at_[hidden]> wrote:
> 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 & );
Exactly! Ditto. Just what my last post said. It is a very "C" style
rather then C++, but its compiling speed enhancements are very nice.
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