220 23720 <5697EA27.7090603@wanadoo.fr> article
Path: news.gmane.org!not-for-mail
From: "Vicente J. Botet Escriba" <vicente.botet@wanadoo.fr>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Default swap/hash_value
Date: Thu, 14 Jan 2016 19:34:15 +0100
Lines: 31
Approved: news@gmane.org
Message-ID: <5697EA27.7090603@wanadoo.fr>
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>
 <B59AADD0-1021-4DF9-8360-44C6EE3500E6@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1452796471 10941 80.91.229.3 (14 Jan 2016 18:34:31 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 14 Jan 2016 18:34:31 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDH67CONY4PBBKWU362AKGQELZNVUOI@isocpp.org Thu Jan 14 19:34:22 2016
Return-path: <std-proposals+bncBDH67CONY4PBBKWU362AKGQELZNVUOI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f72.google.com ([74.125.82.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDH67CONY4PBBKWU362AKGQELZNVUOI@isocpp.org>)
	id 1aJmix-0007yQ-U2
	for gclcip-std-proposals@m.gmane.org; Thu, 14 Jan 2016 19:34:20 +0100
Original-Received: by mail-wm0-f72.google.com with SMTP id b14sf107985384wmb.2
        for <gclcip-std-proposals@m.gmane.org>; Thu, 14 Jan 2016 10:34:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=subject:to:references:from:message-id:date:user-agent:mime-version
         :in-reply-to:content-type:content-transfer-encoding
         :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=9jdNCJZOosnLG2EDDl/4fbsQbgAFFtPLj2zMhhlvJGQ=;
        b=PiEs6khMglyjnTLdZ+RZ/CPrHyJrL431lX3jhs/yPSSZMrRKPGuVXI2tKxGCUc6Mfc
         3lFSZkn9bLyIBlDXIZMT+ZjgZod5pS0I2FpiG1ZbKHLe244o9SWKgTzyAZop00fsNsN+
         6qtWBw6uMYmH9/IgEdBEEG+Aul2SoZQjlykZxGaTjlSXOSF9SJUkGr/JXrnvb1B4Co8Z
         oouERy5o9liwTLMQGEAQtzYwOvgR7FGmTyQ5PohXbZuTOxQCZcQMO3EJJJSnAClB5RMO
         YwIX0vf7Uw+6hQ3UEZo5Yva6hU8T+eE93q0rHTPG5LYUVOfAcZ6QWwgjxRuse 
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:subject:to:references:from:message-id:date
         :user-agent:mime-version:in-reply-to:content-type
         :content-transfer-encoding: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=9jdNCJZOosnLG2EDDl/4fbsQbgAFFtPLj2zMhhlvJGQ=;
        b=YNvXIPAd5i0q3xpjyR0OhKngRn0QCR9cnFtYjBhQK3A8Q2Qw6Tc76NE+Y7yLustcDy
         4/JYo1xXELzWjfVesJFbTml2F3DyZ68ZYpHu7XdT2EI0yUbOHs/XicK9DQfdnyOn4B72
         C48C3SQb3VkuC8ZNPDphNyAwwG+95sk1NIga1xeBfgM17jAsW86v8+You+1/z6pInNHq
         G8sx70ZJSZLIkNTpKhSPI7khmIeAgmKIhan1lzqBkSOAgD1RqmZd+rsbIJenujZlzZIm
         0EoJnic3mrav0oRfBGYFS5K++/qAlklcexfYmw0oAipGzM/ 
X-Gm-Message-State: ALoCoQks5zRr4xIQ/vjScAbWECzh+UztMhBlM6q9/dX14l/OmPMUJ8cN7e8gSl8hi74b+j4JceGCM9731pECKzNuNUy0NJd2vQ==
X-Received: by 10.112.234.225 with SMTP id uh1mr658377lbc.1.1452796459428;
        Thu, 14 Jan 2016 10:34:19 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.129.145 with SMTP id c139ls1135994wmd.52.canary; Thu, 14
 Jan 2016 10:34:18 -0800 (PST)
X-Received: by 10.194.58.235 with SMTP id u11mr5662535wjq.52.1452796458082;
        Thu, 14 Jan 2016 10:34:18 -0800 (PST)
Original-Received: from smtp.smtpout.orange.fr (smtp06.smtpout.orange.fr. [80.12.242.128])
        by mx.google.com with ESMTPS id w2si11314099wjf.153.2016.01.14.10.34.18
        for <std-proposals@isocpp.org>
        (version=TLS1 cipher=AES128-SHA bits=128/128);
        Thu, 14 Jan 2016 10:34:18 -0800 (PST)
Received-SPF: neutral (google.com: 80.12.242.128 is neither permitted nor denied by best guess record for domain of vicente.botet@wanadoo.fr) client-ip=80.12.242.128;
Original-Received: from new-host.home ([92.139.160.222])
	by mwinf5d64 with ME
	id 5uaF1s00e4oBxcU03uaGT8; Thu, 14 Jan 2016 19:34:17 +0100
X-ME-Helo: new-host.home
X-ME-Auth: dmljZW50ZS5ib3RldEB3YW5hZG9vLmZy
X-ME-Date: Thu, 14 Jan 2016 19:34:17 +0100
X-ME-IP: 92.139.160.222
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0)
 Gecko/20100101 Thunderbird/38.4.0
In-Reply-To: <B59AADD0-1021-4DF9-8360-44C6EE3500E6@gmail.com>
X-Original-Sender: vicente.botet@wanadoo.fr
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 80.12.242.128 is neither permitted nor denied by best guess
 record for domain of vicente.botet@wanadoo.fr) smtp.mailfrom=vicente.botet@wanadoo.fr
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:23720
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/23720>

Le 14/01/2016 18:47, Howard Hinnant a =C3=A9crit :
> On Jan 14, 2016, at 12:43 PM, Jonathan Coe <jonathanbcoe@gmail.com> wrote=
:
>> How will is_uniquely_represented work with architecture dependant alignm=
ent requirements and padding?
> It will have to be up to the author of the type to correctly specialize i=
s_uniquely_represented for all architectures of interest to them.  Padding =
bytes can be detected by assuring that the sum of the size of your bases an=
d members is equal to the size of your type.  For example:
>
> https://github.com/HowardHinnant/hash_append/blob/master/hash_append.h#L1=
43-L151
>
>
Howard. I don't see why the author should be the single one able to do=20
it correctly. Do you see a case for classes like std::pair for which the=20
specialization your showed is not a good one?

Vicente

--=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/.

.
