220 21336 <2258653.TrFlJqTDWj@tjmaciei-mobl4> article
Path: news.gmane.org!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: missing hash_code result in P0029
Date: Tue, 06 Oct 2015 08:06:54 +0100
Lines: 30
Approved: news@gmane.org
Message-ID: <2258653.TrFlJqTDWj@tjmaciei-mobl4>
References: <d714437b-638b-4a72-9e0a-35c4f6e9e484@isocpp.org> <1894409.GHBCqMxsGN@tjmaciei-mobl4> <CAFmGaCr2yF0h965+pESC-846M0+_zRtLbNnODDq79zziSOCnvw@mail.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
X-Trace: ger.gmane.org 1444115244 21355 80.91.229.3 (6 Oct 2015 07:07:24 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 6 Oct 2015 07:07:24 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBHHGZWYAKGQEBDILBSI@isocpp.org Tue Oct 06 09:07:14 2015
Return-path: <std-proposals+bncBCB4TK757YBRBHHGZWYAKGQEBDILBSI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lb0-f199.google.com ([209.85.217.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB4TK757YBRBHHGZWYAKGQEBDILBSI@isocpp.org>)
	id 1ZjMLA-00051W-8J
	for gclcip-std-proposals@m.gmane.org; Tue, 06 Oct 2015 09:07:12 +0200
Original-Received: by lbwr8 with SMTP id r8sf44480049lbw.0
        for <gclcip-std-proposals@m.gmane.org>; Tue, 06 Oct 2015 00:07:11 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:subject:date:message-id:user-agent
         :in-reply-to:references:mime-version:content-type: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=eOGfAG3qOAow+TdIWxxPvPZjMLrTpMMX/fiSR8fRKfY=;
        b=j6wqUIRK1gyiHf7igvdjAbalQjnHnIoV6Q1hIJ1/0DotF8F80vn+OlD9PDMKtY/JBE
         E/vayYBFioNjYMWW9eAdGLW0Af8j76qTaAZZBGxLq/kVqIdYMu+afJoTRjkPITFBfvq2
         ngij7qweqSIy3yhfrohZUuQ8gkL84hyPAy0ec0XOvJuTZ7WcM1x7Y1NlqBJ3VNUcEbL8
         eq0Lpl/Bd0klDGQoAUxK1HngAdkbvLmszbye0jzmRYH2/p6lr5cdm/RyYAMO/1IKKYy+
         3MfImOVgj6GgLritUJh012g0M/lGYvc+Tzz7c0b22NlrnGIxnnouFVRWc+5YygYsszwU
         cePA= 
X-Gm-Message-State: ALoCoQnpET8nXT5jfyoI3ZacWxevPgz61HMk0YPtcSF9/EINahNxXBlYrp3mJQ6IBKtKVb6xACip
X-Received: by 10.180.35.132 with SMTP id h4mr3219851wij.5.1444115231838;
        Tue, 06 Oct 2015 00:07:11 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.107.169 with SMTP id hd9ls1014885wib.31.gmail; Tue, 06 Oct
 2015 00:07:08 -0700 (PDT)
X-Received: by 10.180.86.165 with SMTP id q5mr16156638wiz.27.1444115228016;
        Tue, 06 Oct 2015 00:07:08 -0700 (PDT)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [78.47.120.188])
        by mx.google.com with ESMTP id hq5si36197737wjb.134.2015.10.06.00.07.07
        for <std-proposals@isocpp.org>;
        Tue, 06 Oct 2015 00:07:07 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) client-ip=78.47.120.188;
Original-Received: from tjmaciei-mobl4.localnet (jfdmzpr02-ext.jf.intel.com [134.134.137.71])
	by gondolin.macieira.info (Postfix) with ESMTPSA id A079611B634
	for <std-proposals@isocpp.org>; Tue,  6 Oct 2015 00:07:06 -0700 (PDT)
User-Agent: KMail/4.14.9 (Linux/4.1.6-1-desktop; KDE/4.14.9; x86_64; ; )
In-Reply-To: <CAFmGaCr2yF0h965+pESC-846M0+_zRtLbNnODDq79zziSOCnvw@mail.gmail.com>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) smtp.mailfrom=thiago@macieira.org
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: <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: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:21336
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/21336>

On Monday 05 October 2015 22:33:50 Shahms King wrote:
> As far as I understand it, you don't.  std::hash_code is the internal state
> of whatever hash algorithm is being used by std::hash.  Either you're using
> std::hash, in which case it initializes the std::hash_code through
> mechanisms unknown and similarly extracts the value or you're using a
> different algorithm which uses a different type to represent its internal
> state which conforms to the HashCode concept and you don't traffic in
> std::hash_code at all.  At least, that's my reading of the proposal.
> 
> Either your hash_value() function accepts std::hash_code and only works
> with std::hash, or it's a template and supports any conforming hashing
> algorithm.

Ok, so the class is not useful or interesting at all for me. I will pay it no 
further attention.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

-- 

--- 
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/.

.
