220 27988 <87vaymy273.fsf@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Moritz Klammler <moritz.klammler@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Make (strongly typed) enums castable to char
 const * const
Date: Sat, 27 Aug 2016 11:46:08 +0200
Lines: 21
Approved: news@gmane.org
Message-ID: <87vaymy273.fsf@gmail.com>
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 1472291178 21196 195.159.176.226 (27 Aug 2016 09:46:18 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sat, 27 Aug 2016 09:46:18 +0000 (UTC)
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDHI7IWJYALRBY6CQW7AKGQETFHWJHY@isocpp.org Sat Aug 27 11:46:13 2016
Return-path: <std-proposals+bncBDHI7IWJYALRBY6CQW7AKGQETFHWJHY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f69.google.com ([209.85.215.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDHI7IWJYALRBY6CQW7AKGQETFHWJHY@isocpp.org>)
	id 1bdaBo-0004xX-KW
	for gclcip-std-proposals@m.gmane.org; Sat, 27 Aug 2016 11:46:12 +0200
Original-Received: by mail-lf0-f69.google.com with SMTP id e7sf67943056lfe.0
        for <gclcip-std-proposals@m.gmane.org>; Sat, 27 Aug 2016 02:46:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:in-reply-to:message-id:user-agent: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=ZnB+Q8cmjybt2zjdIw9UW+kPQ3dsYViubrrBafV+E+k=;
        b=D1Nz2bTf3Pu6YI486GH3L2IYcXi3Anacp7m8Z8vpqx4yr334YAgl7jmfB+azB2pxAm
         8j1/Javl+EnaB0m6bNEhydimwxeF8p/tdyyCRht1xd3fntzk1nx1bxarHWWJEY+AcrSp
         OghenG9Tu8mRD/5pC1HYG6VYdqRe7nzN7vpESRTBCIgMNCEc02yzoAnEBx4P9KRhypX6
         fiSWZm7MTlv0k3xSJNbhAXa2xiFJQFssjMTkqaAhMPjNcIF8/Ux+yXQfpO8Q/m9Fjws0
         Fn8HI40hqbEifkPLakqPNrU5+hF0/aC6pDYIiV6dFSyJlZ7qeH7ghdHIUeQfFj72mH3J
         V4uA==
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:in-reply-to:message-id
         :user-agent: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=ZnB+Q8cmjybt2zjdIw9UW+kPQ3dsYViubrrBafV+E+k=;
        b=V5HxP8brR+WRY+Ux16a1X6fjQgqJHLCzBgFioK+5VLW10Nb1n7JPI1gndvQPyAJfqS
         yQaUCmjep7xmja56TrQ5heSZXJMGvqgklHH7ER+KnE3KrhQ2KjewExL4a9Umf6HErqSP
         KQ3yOO2IliTROXqhjGHL8vM/yMthmaeNyMs1iYviC/vQIiyvk5ZOjBO8oxx+reUl1IDZ
         wipiDuUgQK4FtDwCPOZ6ATm4bDM2P9ailCDl0pTnMBt8zQ6Lq8+DmQWXd+uxqeE1nP9p
         CqUeQR7zZIDXA/6i5H8TpElXnvoL/AbsrGNBaHSvndnTQ6DxyQmHL4LiX/I2CkOi6uqn
         kHbQ==
X-Gm-Message-State: AE9vXwON0fquaqVMM4T7lh3GPP+jE1OJY4uRCICxKhTLPom4BqhdewBvCJPv0ABNXZHtfw==
X-Received: by 10.25.78.12 with SMTP id c12mr1095471lfb.1.1472291172682;
        Sat, 27 Aug 2016 02:46:12 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.26.76 with SMTP id a73ls1556254wma.15.gmail; Sat, 27 Aug
 2016 02:46:11 -0700 (PDT)
X-Received: by 10.28.46.204 with SMTP id u195mr2382863wmu.57.1472291171541;
        Sat, 27 Aug 2016 02:46:11 -0700 (PDT)
Original-Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com. [2a00:1450:400c:c09::22b])
        by mx.google.com with ESMTPS id f13si23542280wjz.114.2016.08.27.02.46.11
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 27 Aug 2016 02:46:11 -0700 (PDT)
Received-SPF: pass (google.com: domain of moritz.klammler@gmail.com designates 2a00:1450:400c:c09::22b as permitted sender) client-ip=2a00:1450:400c:c09::22b;
Original-Received: by mail-wm0-x22b.google.com with SMTP id q128so20274063wma.1
        for <std-proposals@isocpp.org>; Sat, 27 Aug 2016 02:46:11 -0700 (PDT)
X-Received: by 10.194.19.129 with SMTP id f1mr7565968wje.160.1472291170937;
        Sat, 27 Aug 2016 02:46:10 -0700 (PDT)
Original-Received: from moritz-laptop ([2a03:2260:a:b:28d0:df28:4e99:ae4b])
        by smtp.gmail.com with ESMTPSA id 4sm3055226wmu.2.2016.08.27.02.46.08
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
        Sat, 27 Aug 2016 02:46:09 -0700 (PDT)
In-Reply-To: chochlik@gmail.com's message of "Fri\, 26 Aug 2016 23\:02\:19 -0700
	\(PDT\) \(3 hours\, 39 minutes\, 17 seconds ago\)"
X-Original-Sender: moritz.klammler@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 moritz.klammler@gmail.com designates 2a00:1450:400c:c09::22b as permitted
 sender) smtp.mailfrom=moritz.klammler@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: <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:27988
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/27988>

chochlik@gmail.com writes:

> Author of P0194Rx here.
>
> Besides the clang fork, where you already can list all the members of
> an enum (with the `std::meta::get_enumerators_v` operation) and get
> the name of the enumerator (the `get_base_name_v` operation) and get
> the constant value of the enumerator (the `get_constant_v` operation),
> there is also a set of higher-level, experimental libraries built on
> top of the clang fork: https://github.com/matus-chochlik/mirror . It's
> still W.I.P. and without docs, but you can have a look at the
> examples.

Thanks a lot; I'll be looking into these.

-- 
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/87vaymy273.fsf%40gmail.com.

.
