C++ plans? (Re: r23706 - gnucash/trunk/src/register/ledger-core - Bug 721791)
jralls at ceridwen.us
Wed Jan 22 23:01:02 EST 2014
On Jan 22, 2014, at 6:15 PM, Derek Atkins <derek at ihtfp.com> wrote:
> On Wed, January 22, 2014 8:57 pm, John Ralls wrote:
>> PImpl, which decomposes as either "Private Implementation" or "Pointer to
>> Implementation" is a basic C++ idiom. Here's Herb Sutter's explanation:
> Ahh, I do know this idiom, I have just never seen it named this way.
> Indeed, I use this idiom all the time, although I don't use "unique_ptr".
Unique_ptr is a new feature of C++11, replacing the old auto_ptr with similar behavior and supposedly without the bugs. Fortunately we don't need to require C++11 to use it, it's been in Boost since 1.37.
More information about the gnucash-devel