220 7607 <CAA7U3HOdrRSO_4vpNJ4spxfyAUYqTC8ODEvOpLAWd_DXrv3o9A@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Olaf van der Spek <olafvdspek@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Fixing the private method issue
Date: Wed, 6 Nov 2013 13:45:32 +0100
Lines: 25
Approved: news@gmane.org
Message-ID: <CAA7U3HOdrRSO_4vpNJ4spxfyAUYqTC8ODEvOpLAWd_DXrv3o9A@mail.gmail.com>
References: <d5cd9fa5-ac2f-465b-b92d-cf2a35607245@isocpp.org>
	<5eeafd6f-32f3-4281-9374-617af852fe21@isocpp.org>
	<CAOfiQqkokv_B9JDrGGviBM3-yScSCMTjS5wMd49dQpwinPBiWA@mail.gmail.com>
	<CAGsORuAspU5wOfv44_pDj01Nj9eVyWPUHYj73jJAqsNTXobx=Q@mail.gmail.com>
	<CAOfiQqkxLLXy0981PCCgHPpbVy7wjEqx_V54r_b_pSyAH0JvgQ@mail.gmail.com>
	<2bc74340-d319-4725-92dd-5b95b59db7c8@isocpp.org>
	<9ce77e08-d9eb-48d0-969b-3aae833a3708@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1383741931 856 80.91.229.3 (6 Nov 2013 12:45:31 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 6 Nov 2013 12:45:31 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5NB45SSABBB3PT5CJQKGQEPIVZBHY@isocpp.org Wed Nov 06 13:45:36 2013
Return-path: <std-proposals+bncBC5NB45SSABBB3PT5CJQKGQEPIVZBHY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ee0-f69.google.com ([74.125.83.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5NB45SSABBB3PT5CJQKGQEPIVZBHY@isocpp.org>)
	id 1Ve2UI-0004GT-QX
	for gclcip-std-proposals@m.gmane.org; Wed, 06 Nov 2013 13:45:34 +0100
Original-Received: by mail-ee0-f69.google.com with SMTP id e49sf7041537eek.0
        for <gclcip-std-proposals@m.gmane.org>; Wed, 06 Nov 2013 04:45:34 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-type;
        bh=uFvuOeDG8An0qkuvuAtXnZ2zQjya1nqGZxR/CKeuhLg=;
        b=OgXAsk83AfvNvVH1FhyWJC7wLaZeswKQu4AFgqr5FAIKXJQ4hyEzItJZ/UYIuU4kHY
         UHJ7LYKQ+TQeA7jFfi46J8Jgh7pavxYdgevSdGhsIiQLk8SQTBPqjaC4JQoaoVblRsTj
         KUqTTs60DzEoAtWegOd+zZye0IVbSJgK6k9gXx9p+a7gstOKqT7/NgqlciJcWuzAexch
         rA4Mj5kpECthjrJaYqFt6ezQkSlefopgbZFQW/v+SraYIhBJJmhEM4DmaepeWVjgW6Ji
         eprF1kDiLBhZDE/tnITDyA/rDHmzzpwskYy/rFCFpAFz2mwVSLtX2w1luE8/afZPBuZD
         k3Yg==
X-Gm-Message-State: ALoCoQla9uwuhQXqwUUX/QtjrCRn95b09U7EJsnsNEZLrPkFNFXf+hDdmoltqGNS9DuX0+w2goYD
X-Received: by 10.180.106.70 with SMTP id gs6mr4456077wib.3.1383741934380;
        Wed, 06 Nov 2013 04:45:34 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.8.168 with SMTP id s8ls264457wia.54.gmail; Wed, 06 Nov
 2013 04:45:33 -0800 (PST)
X-Received: by 10.204.167.140 with SMTP id q12mr1864260bky.2.1383741933442;
        Wed, 06 Nov 2013 04:45:33 -0800 (PST)
Original-Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com [2a00:1450:4010:c04::231])
        by mx.google.com with ESMTPS id ci7si4223882bkc.180.2013.11.06.04.45.33
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 06 Nov 2013 04:45:33 -0800 (PST)
Received-SPF: pass (google.com: domain of olafvdspek@gmail.com designates 2a00:1450:4010:c04::231 as permitted sender) client-ip=2a00:1450:4010:c04::231;
Original-Received: by mail-lb0-f177.google.com with SMTP id u14so7576423lbd.22
        for <std-proposals@isocpp.org>; Wed, 06 Nov 2013 04:45:33 -0800 (PST)
X-Received: by 10.112.168.170 with SMTP id zx10mr2563036lbb.0.1383741933050;
 Wed, 06 Nov 2013 04:45:33 -0800 (PST)
Original-Received: by 10.152.5.229 with HTTP; Wed, 6 Nov 2013 04:45:32 -0800 (PST)
In-Reply-To: <9ce77e08-d9eb-48d0-969b-3aae833a3708@isocpp.org>
X-Original-Sender: olafvdspek@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of olafvdspek@gmail.com designates 2a00:1450:4010:c04::231 as
 permitted sender) smtp.mail=olafvdspek@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:7607
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7607>

On Wed, Nov 6, 2013 at 1:21 PM,  <fmatthew5876@gmail.com> wrote:
> On Monday, November 4, 2013 8:18:22 AM UTC-5, Olaf van der Spek wrote:
>>
>> Not entirely true. In general, callers don't need to know the layout. The
>> layout is (only?) required when accessing data members, the size is only
>> required when creating an object on the stack.
>> Not requiring private data members in the header would be nice too IMO.
>
>
> But how would you compute the size without knowing the layout? You
> need to know the layout for padding. Also, what real use is knowing
> the size without knowing the layout. As soon as you change a data
> member your callers will need to recompile anyway as the size will
> change.

If you pass by reference / pointer there's no need to know size, is there?

-- 

--- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.
