Boost logo

Boost :

Subject: Re: [boost] [pimpl] Some comments
From: Mostafa (mostafa_working_away_at_[hidden])
Date: 2014-06-06 08:41:18


On Fri, 06 Jun 2014 05:03:21 -0700, Sohail Somani <sohail_at_[hidden]>
wrote:

> On 06/06/2014 6:12 AM, Mostafa wrote:
>> When dealing with pimpl'd classes, the expected norm (in my experience)
>> for making deep copies is to use the clone function.
>
> Why?

Existing convention, Java (clone), C# (Clone), Objective-C (copy), and the
RogueWave suite of C++ libraries (clone). Maybe this is just me, but I
view pimpl'd classes much like C#/Java references.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk