220 30235 <10490049.adee8Rr8fZ@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: enum_cast proposal
Date: Wed, 04 Jan 2017 14:16:08 -0200
Lines: 18
Approved: news@gmane.org
Message-ID: <10490049.adee8Rr8fZ@tjmaciei-mobl1>
References: <efdf2357-00a6-408a-8772-12f99135a880@isocpp.org> <64617344.0Ggdhq6B90@tjmaciei-mobl1> <d03061cc-7442-4e10-9313-a3394afa11e3@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: blaine.gmane.org 1483546580 26709 195.159.176.226 (4 Jan 2017 16:16:20 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 4 Jan 2017 16:16:20 +0000 (UTC)
User-Agent: KMail/5.3.3 (Linux/4.8.13-1-default; KDE/5.28.0; x86_64; ; )
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBT57WTBQKGQESGPUP3Q@isocpp.org Wed Jan 04 17:16:16 2017
Return-path: <std-proposals+bncBCB4TK757YBRBT57WTBQKGQESGPUP3Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f71.google.com ([209.85.215.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBT57WTBQKGQESGPUP3Q@isocpp.org>)
	id 1cOoEW-00061f-77
	for gclcip-std-proposals@m.gmane.org; Wed, 04 Jan 2017 17:16:12 +0100
Original-Received: by mail-lf0-f71.google.com with SMTP id l68sf193234653lfb.1
        for <gclcip-std-proposals@m.gmane.org>; Wed, 04 Jan 2017 08:16:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:user-agent:in-reply-to:references
         :mime-version: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=Y7d+VGrvG8b1R2bSo+JiGcUWJPFtX0RZqQNddVz3M2w=;
        b=APV3F6ohjIhV7ecGPrsuVmHg9gBfOY+redNoffF/gb4UT8sg4wXJ/QUYxiiixqpCfb
         5zg0pm4rKxRqY6HCccB5qG/bQEqKg5HePmQ8NLou9uOBCEIQqdLeoW4Rc1psX5HAGDsx
         IxVA5aXHd9NCBbS2Vfbh6N4Ff6XJH6KguwKxQBFN5L/joGKuHnDsSJGpkpj7iVTxjnZL
         pafFchucyhV6LB+OD3sOKmFRWU68FlIq+FMSyaHvGSiz0It4mU1qZxxKVjNQEou7+Nli
         DPNRy6yBq2GukH5GX00GvhYX18BNReDX5QelOaFIO67RDsj+3v8srEcnby4QAHIMHXgm
         1l3Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:subject:date:message-id:user-agent
         :in-reply-to:references:mime-version: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=Y7d+VGrvG8b1R2bSo+JiGcUWJPFtX0RZqQNddVz3M2w=;
        b=QfmAeGJ02WxtFUf3QKojQlcdcgycB/79pRvlh9yZD67PJOqgPRgk1f6lBzaG2ZCMrk
         VnWsN+khoiXMl5CwObeZxYt1y5aSFtzxotlYiFybJc0vXuqAo1obGG3sqUflGsa7aAaJ
         tDyrmi8pRSG7FZ50NxkXy6rj01cCz0Ohqay7+Vfk9QLU/po1+U07HngEiUYhTrcdse1v
         RQ0nOgYqh9uO1/cSVnO3zeax6VZM+3L/Stbq6dLps/zxDCJuyZGgTuRzYpzlSpNwpRjZ
         gSvhsFuHelpu6dhLCVZD+1lBv8Qvv7sFE4HIi9c377yveoZowA9ZjyXCr3Dui5vdYBaJ
         VldQ==
X-Gm-Message-State: AIkVDXI5kOAkC79efjdroTWQE4GcNWyP1i0QLD5plXrZuStx0btpFoNhVjyRqXshGQejkQ==
X-Received: by 10.46.71.68 with SMTP id u65mr6393220lja.19.1483546576722;
        Wed, 04 Jan 2017 08:16:16 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.14.74 with SMTP id 71ls5970176wmo.16.gmail; Wed, 04 Jan
 2017 08:16:15 -0800 (PST)
X-Received: by 10.28.144.66 with SMTP id s63mr44101912wmd.70.1483546575522;
        Wed, 04 Jan 2017 08:16:15 -0800 (PST)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id h13si81822160wjs.271.2017.01.04.08.16.15
        for <std-proposals@isocpp.org>;
        Wed, 04 Jan 2017 08:16:15 -0800 (PST)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl1.localnet (unknown [187.34.234.250])
	by gondolin.macieira.info (Postfix) with ESMTPSA id F230111B827
	for <std-proposals@isocpp.org>; Wed,  4 Jan 2017 08:16:12 -0800 (PST)
In-Reply-To: <d03061cc-7442-4e10-9313-a3394afa11e3@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 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-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:30235
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/30235>

On quarta-feira, 4 de janeiro de 2017 07:20:11 BRST m.cencora@gmail.com wrote:
> Why do you want to use some compiler invented type instead?
> If enum_cast is a function in standard library, why can't it use another
> type from same library?

Then it is a function in the standard library. That means it needs to be based 
on something else to perform the check, like reflection.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/10490049.adee8Rr8fZ%40tjmaciei-mobl1.

.
