220 23715 <B59AADD0-1021-4DF9-8360-44C6EE3500E6@gmail.com> article
Path: news.gmane.org!not-for-mail
From: Howard Hinnant <howard.hinnant@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Default swap/hash_value
Date: Thu, 14 Jan 2016 12:47:56 -0500
Lines: 26
Approved: news@gmane.org
Message-ID: <B59AADD0-1021-4DF9-8360-44C6EE3500E6@gmail.com>
References: <569582E5.1040108@wanadoo.fr> <4072A7C6-B09D-4847-971B-2914643B91D7@gmail.com> <569594AD.6000505@wanadoo.fr> <2170C30C-830F-47C2-8397-29DD4ED35E97@gmail.com> <56960730.9000403@wanadoo.fr> <9160999F-C7E2-4D3F-B343-96CF587BEF61@gmail.com> <5696CC0A.5040709@wanadoo.fr> <753EF830-97D0-4653-B056-BDB2CD4B0760@gmail.com> <601027C6-EDBF-42C5-9AAB-766B31945702@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\))
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1452793698 22796 80.91.229.3 (14 Jan 2016 17:48:18 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 14 Jan 2016 17:48:18 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCK2HM4L6YERBTN6362AKGQERYRXEAQ@isocpp.org Thu Jan 14 18:48:00 2016
Return-path: <std-proposals+bncBCK2HM4L6YERBTN6362AKGQERYRXEAQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pf0-f197.google.com ([209.85.192.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCK2HM4L6YERBTN6362AKGQERYRXEAQ@isocpp.org>)
	id 1aJm07-0005ik-RR
	for gclcip-std-proposals@m.gmane.org; Thu, 14 Jan 2016 18:48:00 +0100
Original-Received: by mail-pf0-f197.google.com with SMTP id n128sf439392181pfn.2
        for <gclcip-std-proposals@m.gmane.org>; Thu, 14 Jan 2016 09:47:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=content-type:mime-version:subject:from:in-reply-to:date
         :content-transfer-encoding:message-id:references:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=xfCIhe2oXgoafqAofkmji+tRP5jvEBMc4/Ch5HACam0=;
        b=eCtV8IykxOl4ezkkbV+z4iq5+/jfwJ0fhSaMc3f1xCQ5xw1+ToVjVX+IjExqvqa/Zh
         XASJTeIZxTc0ovLD9eblxq1uPFiHOR3NtL8LfLZjRsLloCTNho+16JeD13Zl77jU9TrU
         syLI/ld2uda/6HZbRJ7izrSF9auPzBqQQcDSvxoNBznN0yTqrrIhfV3+4zX/LqE48wih
         LbLfjJnhWxbPSFFombko46rZgWCheqCXFfr9lEOVhg1RtzOfMFCha/PP3dYKpfupKE0h
         bOrgpFhHbkYtAUrPpusDUSOo+Mjm3RsHn3oZmYwoxLOejzcJefSskclUGeFkAbwqNYi9
    
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:content-type:mime-version:subject:from
         :in-reply-to:date:content-transfer-encoding:message-id:references:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=xfCIhe2oXgoafqAofkmji+tRP5jvEBMc4/Ch5HACam0=;
        b=J/6gFT1Z62Ba4NfHLhNSyUgfPIBTpy1HeuAGlgpqXTRMhpWD5i39YrXv620mGRfL4X
         w8iCJX+jlPha9pdcrJRGpUZfYfmq9OHfa0pC8fr0o4C+uxHfYmKhcEyepNZi1MlqT9GN
         yZQq/bNNkSZM3GuIUzFqYY1+FST+XdjH1RXOwvz7wPAZpJiSR38fdPT0Ej6v93hpBhRj
         bV8sSTsukUmtb6+/XFULSf++KF4mHIvsdSaTFjOzvi4pNWWao56ahFjWxWZ++DuBN7kr
         2IRaZQG9HagtIMtDPjzDcXpzbiQIzp5ivuOAkn3cehg13RkyVbYBfx16LF+2DLRwrNux 
X-Gm-Message-State: ALoCoQkPtg4Aj6omBPUVbFdc1LM5sQ+YX+BjC7+wJNSNyyAP8mVeSkRyIXvyWOuUvbghaxnU3Jcgh5nTB19jHboRq+nS81YCGA==
X-Received: by 10.66.154.132 with SMTP id vo4mr4803495pab.14.1452793678713;
        Thu, 14 Jan 2016 09:47:58 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.87.66 with SMTP id q60ls712834qgd.62.gmail; Thu, 14 Jan
 2016 09:47:56 -0800 (PST)
X-Received: by 10.55.77.2 with SMTP id a2mr7256951qkb.108.1452793676929;
        Thu, 14 Jan 2016 09:47:56 -0800 (PST)
Original-Received: from mail-qg0-x234.google.com (mail-qg0-x234.google.com. [2607:f8b0:400d:c04::234])
        by mx.google.com with ESMTPS id v7si8339523qhb.113.2016.01.14.09.47.56
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 14 Jan 2016 09:47:56 -0800 (PST)
Received-SPF: pass (google.com: domain of howard.hinnant@gmail.com designates 2607:f8b0:400d:c04::234 as permitted sender) client-ip=2607:f8b0:400d:c04::234;
Original-Received: by mail-qg0-x234.google.com with SMTP id b35so358549139qge.0
        for <std-proposals@isocpp.org>; Thu, 14 Jan 2016 09:47:56 -0800 (PST)
X-Received: by 10.140.252.212 with SMTP id x203mr7534183qhc.48.1452793676790;
        Thu, 14 Jan 2016 09:47:56 -0800 (PST)
Original-Received: from [10.0.1.2] (cpe-104-229-168-124.twcny.res.rr.com. [104.229.168.124])
        by smtp.gmail.com with ESMTPSA id 75sm2907529qkw.19.2016.01.14.09.47.55
        for <std-proposals@isocpp.org>
        (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
        Thu, 14 Jan 2016 09:47:56 -0800 (PST)
In-Reply-To: <601027C6-EDBF-42C5-9AAB-766B31945702@gmail.com>
X-Mailer: Apple Mail (2.3112)
X-Original-Sender: howard.hinnant@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of howard.hinnant@gmail.com designates 2607:f8b0:400d:c04::234 as
 permitted sender) smtp.mailfrom=howard.hinnant@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-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:23715
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/23715>

On Jan 14, 2016, at 12:43 PM, Jonathan Coe <jonathanbcoe@gmail.com> wrote:
>=20
> How will is_uniquely_represented work with architecture dependant alignme=
nt requirements and padding?

It will have to be up to the author of the type to correctly specialize is_=
uniquely_represented for all architectures of interest to them.  Padding by=
tes can be detected by assuring that the sum of the size of your bases and =
members is equal to the size of your type.  For example:

https://github.com/HowardHinnant/hash_append/blob/master/hash_append.h#L143=
-L151

Howard

--=20

---=20
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 e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at https://groups.google.com/a/isocpp.org/group/std-propos=
als/.

.
